-
Notifications
You must be signed in to change notification settings - Fork 27
Add flashtestation builder tx #282
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
base: main
Are you sure you want to change the base?
Conversation
46380ae
to
41c42bf
Compare
79aff67
to
0b9b3a3
Compare
41c42bf
to
01573b2
Compare
where | ||
E: core::error::Error + Send + Sync + 'static, | ||
{ | ||
BuilderTransactionError::Other(Box::new(error)) |
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.
If we want to be fancy we could impl From< T > for BuilderTransactionError where T: core::error::Error + Send + Sync + 'static
} | ||
|
||
#[derive(Debug, Default)] | ||
pub struct TxSimulateResult { |
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.
Can we put revm ExecutionResult in here? Will replace couple of fileds
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.
addressed #285
let verify_block_proof_tx = self.signed_block_builder_proof_tx( | ||
block_content_hash, | ||
ctx, | ||
gas_used * 64 / 63, |
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.
let's wrap this with function?
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.
addressed #285
); | ||
debug!(target: "flashtestations", block_number = ctx.block_number(), tx_hash = ?verify_block_proof_tx.tx_hash(), "adding verify block proof tx to builder txs"); | ||
Ok(Some(BuilderTransactionCtx { | ||
gas_used, |
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.
should gas_used * 64/63 be accounted in here?
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.
addressed #285
0b9b3a3
to
581ebac
Compare
01573b2
to
32146ac
Compare
581ebac
to
8768d27
Compare
32146ac
to
2499332
Compare
Co-authored-by: Solar Mithril <[email protected]>
π Summary
Add flashtestations builder tx and registration logic into built block
π‘ Motivation and Context
β I have completed the following steps:
make lint
make test