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

Validator wallet refactor for bold #2804

Merged
merged 7 commits into from
Nov 25, 2024
Merged

Conversation

PlasmaPower
Copy link
Collaborator

This PR points into bold and should fix using bold with a contract validator wallet, though that hasn't been fully tested yet as there's an issue in the nitro-testnode bold upgrade with the stake token currently.

The main thing this PR does is makes the builder no longer intercept RPC calls. It was always a bit odd that it worked this way, and it didn't play well with bold. Now, the builder uses the signer function to intercept transactions, and overrides the gas limit to prevent gas estimation from failing. The builder also now has support for a "single tx auth", which won't append transactions to the builder (causing concurrency issues with bold) but instead builds a single tx. This means the validator wallet contract doesn't benefit from batching, but if necessary we can figure out a good tx batching strategy for bold in a future PR.

This PR also pulls in OffchainLabs/bold#703 from bold to allow more easily changing the data poster.

Copy link
Member

@eljobe eljobe left a comment

Choose a reason for hiding this comment

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

I have questions, but mostly for my own learning. I don't need to block the review on making any changes.

LGTM

staker/bold/data_poster_transactor.go Outdated Show resolved Hide resolved
staker/legacy/staker.go Show resolved Hide resolved
staker/txbuilder/builder.go Outdated Show resolved Hide resolved
staker/txbuilder/builder.go Show resolved Hide resolved
staker/txbuilder/builder.go Show resolved Hide resolved
staker/txbuilder/builder.go Show resolved Hide resolved
staker/legacy/staker.go Show resolved Hide resolved
staker/txbuilder/builder.go Show resolved Hide resolved
@rauljordan rauljordan merged commit e9ecd45 into bold-review Nov 25, 2024
8 checks passed
@rauljordan rauljordan deleted the val-wallet-refactor branch November 25, 2024 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants