-
Notifications
You must be signed in to change notification settings - Fork 8
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
Validium #32
Conversation
…code Feature/remove unnecesary code
Add GHA to push image on TAG
# Conflicts: # .github/workflows/push-docker-tagged.yml # go.mod # go.sum # sequencesender/sequencesender.go # state/datastream.go # state/interfaces.go
# 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: # config/network.go
# Conflicts: # go.sum
# Conflicts: # go.mod # go.sum # state/encoding_batch_v2_test.go
# Conflicts: # go.mod # go.sum
type DataCommittee struct { | ||
AddressesHash common.Hash | ||
Members []DataCommitteeMember | ||
RequiredSignatures uint64 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
"error getting data from DAC node %s at %s: %s", | ||
member.Addr.Hex(), member.URL, err, | ||
) | ||
d.selectedCommitteeMember = (d.selectedCommitteeMember + 1) % len(d.committeeMembers) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
|
No description provided.