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

feat(gwyneth): add scripts and readme how to test node hook for BlockProposed events #23

Closed

Conversation

adaki2004
Copy link

In order to test our reth based client's functionality of capturing a BlockProposed event and execute it within the L2 VM, we need to have the flow of:

  • L2 TXNs off-chain signed and RLP encoded
  • L2 TXNs sent towards the TaikoL1 (via BasedOperator) in proposeBlock()

THis PR and the readme.md howto describes and re-creates this mechanism, so the hooks can be tested in the node.

@adaki2004 adaki2004 requested a review from Brechtpd July 17, 2024 08:27
bytes memory thirdAddressSendingNonce0 = hex"02f87683028c6380843b9aca00847735940083030d4094f93ee4cf8c6c40b329b0c0626f28333c132cf24188016345785d8a000080c001a0558488f3af91777c382d2ab6ac3507f5d6b906431534193c1a45cc2a08b2825ea0495efd571c9ea5a5290f10efaa219f8c31b4e714745737c4e019df76f7a6df4b";
txList[0] = bytes.concat(firstAddressSendingNonce0, secondAddressSendingNonce0, thirdAddressSendingNonce0);

bytes32 txListHash = keccak256(txList[0]); //Since we not using Blobs, we need this
Copy link
Author

Choose a reason for hiding this comment

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

RLP encode the TXList not concatenate.

@adaki2004
Copy link
Author

Closing as the design is different now, and incorporating this feature into the other PR.

@adaki2004 adaki2004 closed this Jul 19, 2024
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.

1 participant