-
Notifications
You must be signed in to change notification settings - Fork 646
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
[testnet] genesis sync issue when overrides are not applied before reward cycle 413 #4493
Comments
config used to reach the stall: [node]
working_dir = "/stacks-blockchain/data"
rpc_bind = "0.0.0.0:20443"
p2p_bind = "0.0.0.0:20444"
bootstrap_node = "029266faff4c8e0ca4f934f34996a96af481df94a89b0c9bd515f3536a95682ddc@seed.testnet.hiro.so:30444"
wait_time_for_microblocks = 10000
[burnchain]
chain = "bitcoin"
mode = "xenon"
peer_host = "bitcoind.testnet.stacks.co"
username = "blockstack"
password = "blockstacksystem"
rpc_port = 18332
peer_port = 18333
[[ustx_balance]]
address = "ST2QKZ4FKHAH1NQKYKYAYZPY440FEPK7GZ1R5HBP2"
amount = 10000000000000000
[[ustx_balance]]
address = "ST319CF5WV77KYR1H3GT0GZ7B8Q4AQPY42ETP1VPF"
amount = 10000000000000000
[[ustx_balance]]
address = "ST221Z6TDTC5E0BYR2V624Q2ST6R0Q71T78WTAX6H"
amount = 10000000000000000
[[ustx_balance]]
address = "ST2TFVBMRPS5SSNP98DQKQ5JNB2B6NZM91C4K3P7B"
amount = 10000000000000000 and some logs when the loop starts:
|
reproducing is simple, i.e.: docker run -d \
--name stacks \
-p 30443:20443 \
-p 30444:20443 \
-v /stacks-blockchain/data:/stacks-blockchain/data \
-v /stacks-blockchain/testnet.toml:/src/stacks-blockchain/Config.toml \
blockstack/stacks-blockchain:2.4.0.0.4 \
sh -c "/bin/stacks-node start --config /src/stacks-blockchain/Config.toml" and let it run for roughly 20 hours without adding the overrides mentioned in the forum |
@8marz8 it should be simple-ish to add these as default for testnet/xenon: ./stacks-core/stackslib/src/burnchains/db.rs, function with the following overrides when booting a testnet instance:
i would look at ./testnet/stacks-node/src/config.rs: https://github.com/stacks-network/stacks-core/blob/next/testnet/stacks-node/src/config.rs |
Running a genesis sync using the latest tagged release (2.4.0.0.4) results in a stalled sync at block
106978
.adding the overrides from the forum (https://forum.stacks.org/t/stacks-2-4-and-testnet-reorg/15027) enables the sync to proceed past this reward cycle, but it then stalls again at block
107574
, reward cycle 416.Since this is a burden that new node operators may not be aware of when genesis syncing testnet, i propose that these overrides are hardcoded so the binary applies them automatically when genesis syncing testnet.
The text was updated successfully, but these errors were encountered: