Skip to content

feat: support stop at specific height#1581

Merged
Flouse merged 2 commits intomainfrom
feat-exit-after-sync-n-blocks
Nov 21, 2023
Merged

feat: support stop at specific height#1581
Flouse merged 2 commits intomainfrom
feat-exit-after-sync-n-blocks

Conversation

@jjyr
Copy link
Contributor

@jjyr jjyr commented Nov 21, 2023

What this PR does / why we need it?

Close #1306

What is the impact of this PR?

No Breaking Change

Add two options on the run command:

  • --mine-blocks specific how many blocks to mine before exit
  • --mine-to-height specific a block height, axon will exit after mined the block

Example:

# mine 3 blocks, then exit
target/debug/axon run --config devtools/chain/config.toml --mine-blocks 3

PR relation:

CI Settings

CI Usage

Tip: Check the CI you want to run below, and then comment /run-ci.

CI Switch

  • Web3 Compatible Tests
  • OCT 1-5 And 12-15
  • OCT 6-10
  • OCT 11
  • OCT 16-19
  • v3 Core Tests

CI Description

CI Name Description
Web3 Compatible Test Test the Web3 compatibility of Axon
v3 Core Test Run the compatibility tests provided by Uniswap V3
OCT 1-5 | 6-10 | 11 | 12-15 | 16-19 Run the compatibility tests provided by OpenZeppelin

@jjyr jjyr requested a review from chaoticlonghair November 21, 2023 07:50
@jjyr jjyr requested a review from a team as a code owner November 21, 2023 07:50
@jjyr jjyr requested a review from blckngm November 21, 2023 07:50
@Flouse Flouse added this pull request to the merge queue Nov 21, 2023
Merged via the queue into main with commit f692b86 Nov 21, 2023
@KaoImin KaoImin deleted the feat-exit-after-sync-n-blocks branch November 27, 2023 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop chain after a specified number of blocks mined or reach a specified height.

5 participants