-
Notifications
You must be signed in to change notification settings - Fork 450
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
Enable dataposter for validator contract wallet #1788
Conversation
…tro into dataposter-for-validator-contract-wallet
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!
Just one concern.
@@ -68,8 +68,8 @@ func (s *Storage) Put(_ context.Context, index uint64, prev, new *storage.Queued | |||
s.queue = append(s.queue, new) | |||
} else if index >= s.firstNonce { | |||
queueIdx := int(index - s.firstNonce) | |||
if queueIdx > len(s.queue) { | |||
return fmt.Errorf("attempted to set out-of-bounds index %v in queue starting at %v of length %v", index, s.firstNonce, len(s.queue)) |
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.
any particular reason for suppressing this error? earlier out-of-bound issues will be masked as notEqual error now.
Also this might hide one off errors in s.queue. Please confirm with Lee once.
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.
Reverted this and addressed the part that was requiring out-of-bound indexes so that it's no longer needed.
…r-for-validator-contract-wallet
…ter-disable-option
Add option to dataposter to not store the state
…:OffchainLabs/nitro into dataposter-for-validator-contract-wallet
… timeoutchallenge transactions in validator
staker/validator_wallet.go
Outdated
Data: data, | ||
GasFeeCap: gasFeeCap, | ||
GasTipCap: gasTipCap, | ||
GasPrice: gp, |
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.
Specifying GasPrice is redundant if you already specify GasFeeCap and GasTipCap
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.
Done.
staker/validator_wallet.go
Outdated
@@ -326,6 +403,7 @@ func (v *ContractValidatorWallet) TestTransactions(ctx context.Context, txs []*t | |||
Value: totalAmount, | |||
Data: realData, | |||
} | |||
log.Error("anodar testTransactions pendingcallcontract", "msg", msg) |
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 think this was left in by mistake
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.
Thanks for the catch!
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
No description provided.