Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validium #32

Merged
merged 26 commits into from
Jun 7, 2024
Merged

Validium #32

merged 26 commits into from
Jun 7, 2024

Conversation

begmaroman
Copy link
Contributor

No description provided.

@cla-bot cla-bot bot added the cla-signed label Jun 6, 2024
@begmaroman begmaroman changed the base branch from develop to release/v0.2.0 June 6, 2024 12:36
@begmaroman begmaroman self-assigned this Jun 6, 2024
# Conflicts:
#	encoding/encoding.go
#	etherman/etherman.go
#	go.mod
#	go.sum
#	state/batch.go
#	state/errors.go
#	state/forkid.go
#	state/genesis.go
#	state/helper.go
#	state/transaction.go
#	state/types.go
# Conflicts:
#	go.mod
#	go.sum
#	state/encoding_batch_v2_test.go
@begmaroman begmaroman marked this pull request as ready for review June 6, 2024 17:53
dataavailability/dataavailability.go Outdated Show resolved Hide resolved
type DataCommittee struct {
AddressesHash common.Hash
Members []DataCommitteeMember
RequiredSignatures uint64
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will we ever require 2^64 signatures?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This type is used to be compatible with the smart contract since this value comes from chain.

dataavailability/datacommittee/datacommittee.go Outdated Show resolved Hide resolved
"error getting data from DAC node %s at %s: %s",
member.Addr.Hex(), member.URL, err,
)
d.selectedCommitteeMember = (d.selectedCommitteeMember + 1) % len(d.committeeMembers)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No sure about this + 1

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the idea is to iterate over the different committee members, as we are good as long as one of them replies. If one member is not answering, then we try the next one

"error getting data from DAC node %s at %s: %s",
member.Addr.Hex(), member.URL, unexpectedHash,
)
d.selectedCommitteeMember = (d.selectedCommitteeMember + 1) % len(d.committeeMembers)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

sequencesender/config.go Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Jun 7, 2024

Quality Gate Passed Quality Gate passed

Issues
5 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
1.2% Duplication on New Code

See analysis details on SonarCloud

@begmaroman begmaroman merged commit 4f1d5ac into develop Jun 7, 2024
4 checks passed
@begmaroman begmaroman deleted the validium branch June 7, 2024 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants