-
Notifications
You must be signed in to change notification settings - Fork 38
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
Universal nonce #119
Universal nonce #119
Conversation
/// @param _dataRootTupleRoot The Merkle root of data root tuples. | ||
/// @param _currentValidatorSet The current validator set. | ||
/// @param _sigs Signatures. | ||
function submitDataRootTupleRoot( | ||
uint256 _nonce, | ||
uint256 _newNonce, | ||
uint256 _validatorSetNonce, |
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.
Rather than passing in the latest validator set nonce as a parameter, this could be saved in storage. Opinions either way @evan-forbes @sweexordious?
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.
I'm okey either way.
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. How much gas would that cost? It would only save a few queries for the relayer, and not that many people will be running relayers I don't think, so probably not worth it add storage me thinks.
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.
It would be more expensive in every way to use storage.
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.
LGTM to me. Deferring to @evan-forbes
/// @param _dataRootTupleRoot The Merkle root of data root tuples. | ||
/// @param _currentValidatorSet The current validator set. | ||
/// @param _sigs Signatures. | ||
function submitDataRootTupleRoot( | ||
uint256 _nonce, | ||
uint256 _newNonce, | ||
uint256 _validatorSetNonce, |
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.
I'm okey either way.
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.
linking to celestiaorg/celestia-app#464 again for posterity
LGTM 👍
/// @param _dataRootTupleRoot The Merkle root of data root tuples. | ||
/// @param _currentValidatorSet The current validator set. | ||
/// @param _sigs Signatures. | ||
function submitDataRootTupleRoot( | ||
uint256 _nonce, | ||
uint256 _newNonce, | ||
uint256 _validatorSetNonce, |
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. How much gas would that cost? It would only save a few queries for the relayer, and not that many people will be running relayers I don't think, so probably not worth it add storage me thinks.
Fixes #118