swanky-cli icon indicating copy to clipboard operation
swanky-cli copied to clipboard

Block number manipulation

Open shunsukew opened this issue 2 years ago • 0 comments

Overview (What and Why)

Part of https://github.com/AstarNetwork/swanky-node/issues/49

swanky-node has manual block sealing feature via RPC engine_createBlock and engine_finalizeBlock. Allowing users to forward/finalize blocks manually using swanky-cli command or library inside a script. Similar to what hardhat has https://hardhat.org/hardhat-network-helpers/docs/reference#mine([blocks],-[options]).

  • Seal block command & library exposed
  • Finalize block command & library exposed
  • (Multiple block sealing or sealing block up to block number X option. This might require swanky-node side development https://github.com/AstarNetwork/swanky-node/issues/49#issuecomment-1541400077)

How

{Describe what needs to be done.}

  • [ ] seal block command
  • [ ] finalize block command

Definition of Done

{Write definition of done, how to verify}

  • [ ] Unit test cases (delete if not applicable)
  • [ ] Docs updated (delete if not applicable)
  • [ ] PR approved and merged to master (delete if not applicable)

Open Issues and Blockers

{Dependencies issue or PR or some other blocker.}

shunsukew avatar May 10 '23 05:05 shunsukew