Skip to content

Conversation

avalonche
Copy link
Collaborator

πŸ“ Summary

Add flashtestations builder tx and registration logic into built block

πŸ’‘ Motivation and Context


βœ… I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

@avalonche avalonche changed the base branch from main to updated-registration October 1, 2025 22:39
@avalonche avalonche force-pushed the add-flashtestation-builder-tx branch from 46380ae to 41c42bf Compare October 1, 2025 22:41
@avalonche avalonche force-pushed the updated-registration branch from 79aff67 to 0b9b3a3 Compare October 2, 2025 05:44
@avalonche avalonche force-pushed the add-flashtestation-builder-tx branch from 41c42bf to 01573b2 Compare October 2, 2025 05:45
where
E: core::error::Error + Send + Sync + 'static,
{
BuilderTransactionError::Other(Box::new(error))
Copy link
Collaborator

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 {
Copy link
Collaborator

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

Copy link
Collaborator Author

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,
Copy link
Collaborator

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?

Copy link
Collaborator Author

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,
Copy link
Collaborator

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

addressed #285

@avalonche avalonche force-pushed the updated-registration branch from 0b9b3a3 to 581ebac Compare October 2, 2025 17:47
@avalonche avalonche force-pushed the add-flashtestation-builder-tx branch from 01573b2 to 32146ac Compare October 2, 2025 17:48
@avalonche avalonche force-pushed the updated-registration branch from 581ebac to 8768d27 Compare October 3, 2025 17:47
Base automatically changed from updated-registration to main October 3, 2025 17:47
@avalonche avalonche force-pushed the add-flashtestation-builder-tx branch from 32146ac to 2499332 Compare October 3, 2025 17:54
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.

2 participants