stacks-network / stacks-core

The Stacks blockchain implementation
https://docs.stacks.co
GNU General Public License v3.0
3.01k stars 667 forks source link

Nakamoto Node Stuck at 38895 by "Signer sets are empty in a reward set that will be used in nakamoto" #5069

Closed pc-quiknode closed 3 weeks ago

pc-quiknode commented 1 month ago

Describe the bug

Nakamoto node is stuck at block 38895 by the following error messages:

INFO [1723532135.507061] [stackslib/src/chainstate/coordinator/mod.rs:799] [chains-coordinator-0.0.0.0:20443] PoX Anchor block selected, cycle: 45, consensus_hash: 8e9fc39713ea194c92dacbcad4ba0bb36e46df18, block_hash: 0273c0cd7951ecb449786af6bfc13a6d24c057a5ff4e25c587fd563129bcf520, block_id: d1e997e7da36b8b658ac7af295cac33d4a451ecb68189f4a3daf1f3fb69abd63, is_known: true, commit_txid: 7cca9923d5c26379e1191899a1f4c5906767c2205f87f98b8d6f34ccbca9b22b, cycle_burn_height: 40731
INFO [1723532135.507135] [stackslib/src/chainstate/stacks/boot/mod.rs:1285] [chains-coordinator-0.0.0.0:20443] Active PoX contract at d1e997e7da36b8b658ac7af295cac33d4a451ecb68189f4a3daf1f3fb69abd63 (cycle start height 40731): pox-4
INFO [1723532135.512986] [stackslib/src/chainstate/stacks/boot/mod.rs:917] [chains-coordinator-0.0.0.0:20443] PoX participation threshold is 20590000000000, from 20582439413503 + 7560586497 (32931903061605974), participation is 135082000000000
INFO [1723532135.513003] [stackslib/src/chainstate/coordinator/mod.rs:454] [chains-coordinator-0.0.0.0:20443] PoX reward cycle did not have enough participation. Defaulting to burn, burn_height: 40731, participation: 135082000000000, liquid_ustx: 131727612246423896, registered_addrs: 4
ERRO [1723532135.513010] [stackslib/src/chainstate/coordinator/mod.rs:358] [chains-coordinator-0.0.0.0:20443] FATAL: Signer sets are empty in a reward set that will be used in nakamoto, reward_set: RewardSet { rewarded_addresses: [], start_cycle_state: PoxStartCycleInfo { missed_reward_slots: [] }, signers: None, pox_ustx_threshold: None }

Environment (please complete the following information):

config.toml

[node]
# Set this based on where you downloaded
# the chain state archive as described in the How to Run a Signer guide:
working_dir = "/home/stacks/stx/persistent-data/stacks-blockchain"
rpc_bind = "0.0.0.0:20443"
p2p_bind = "0.0.0.0:20444"
# This is the node that your node will use to begin syncing chain state
bootstrap_node = "0341b2ff35b545d8e5c5d2fc8821484610ef85ce8e276214caf23d53be16fdcd65@seed.nakamoto.testnet.hiro.so:50444"
wait_time_for_microblocks = 0
mine_microblocks = false

[[events_observer]]
endpoint = "localhost:3700"
retry_count = 255
events_keys = ["*"]

[burnchain]
chain = "bitcoin"
mode = "krypton"
magic_bytes = "N3"
poll_time_secs = 30
pox_prepare_length = 100
pox_reward_length = 900
peer_host = "bitcoin.nakamoto.regtest.hiro.so"
username = "hirosystems"
password = "hirosystems"
burnchain_op_tx_fee = 5500
commit_anchor_block_within = 300000
rpc_port = 18543
peer_port = 18544
#satoshis_per_byte = 20
first_burn_block_height = 230
first_burn_block_timestamp = 1714513150
first_burn_block_hash = "654e1e9f66701d4f8a138b46d4cf0cc26665688175bcbb1700729efbf759e57d"

[connection_options]
read_only_call_limit_write_length = 100000
read_only_call_limit_read_length = 1000000
read_only_call_limit_write_count = 300
read_only_call_limit_read_count = 1000
read_only_call_limit_runtime = 5000000000

[[burnchain.epochs]]
epoch_name = "1.0"
start_height = 0

[[burnchain.epochs]]
epoch_name = "2.0"
# start_height = 2000000 # real epoch start height
start_height = 230

[[burnchain.epochs]]
epoch_name = "2.05"
# start_height = 2104380 # real epoch start height
start_height = 240

[[burnchain.epochs]]
epoch_name = "2.1"
# start_height = 2422101 # real epoch start height
start_height = 241

[[burnchain.epochs]]
epoch_name = "2.2"
# start_height = 2431300 # real epoch start height
start_height = 242

[[burnchain.epochs]]
epoch_name = "2.3"
# start_height = 2431633 # real epoch start height
start_height = 243

[[burnchain.epochs]]
epoch_name = "2.4"
# start_height = 2432545 # real epoch start height
start_height = 244

[[burnchain.epochs]]
epoch_name = "2.5"
start_height = 245

[[burnchain.epochs]]
epoch_name = "3.0"
start_height = 41111

[[ustx_balance]]
address = "ST0DZFQ1XGHC5P1BZ6B7HSWQKQJHM74JBGCSDTNA"
amount = 10000000000000000

[[ustx_balance]]
address = "ST2G2RJR4B5M95D0ZZAGZJP9J4WH090WHP0C5YW0H"
amount = 10000000000000000

[[ustx_balance]]
address = "ST3JCQJE9NZRCAPPE44Q12KR7FH8AY9HTEMWP2G5F"
amount = 10000000000000000

[[ustx_balance]]
address = "STA0EP5GD8FC661T8Q0Z382QW7Z6JXDM3E476MB7"
amount = 17500000000000

[[ustx_balance]]
address = "ST3MNK12DGQF7JN4Q0STK6926VWE5MN21KJ4EGV0E"
amount = 10000000000000000

[[ustx_balance]]
address = "ST484MS3VACPAZ90WHC21XQ7T6XANCV341HJYE0W"
amount = 10000000000000000

[[ustx_balance]]
address = "ST2D1M978SCE52GAV07VXSRC9DQBP69X5WHX0DHN5"
amount = 10000000000000000

[[ustx_balance]]
address = "ST2A68NMMXVZDWDTDZ5GJGA69M86V8KK0JS9X1QQP"
amount = 10000000000000000

[[ustx_balance]]
address = "ST2ME1CR5XR0P332SBTSD90P9HG48F1SK8MZVJ3XW"
amount = 10000000000000000

[[ustx_balance]]
address = "ST19MXV72S9HHRSZCDY10K9DMB11JYPTXVVNYAWPH"
amount = 10000000000000000

[[ustx_balance]]
address = "ST20Q2N56E1NBWE37R4VGSF89X4HHTB3GSMD8GKYW"
amount = 10000000000000000

[[ustx_balance]]
address = "ST2Q6124HQFKVKPJSS5J6156BJR74FD6EC1297HJ1"
amount = 10000000000000000

[[ustx_balance]]
address = "ST1114TBQYGNPGFAVXKWBKZAHP0X7ZGX9K6XYYE4F"
amount = 10000000000000000

[[ustx_balance]]
address = "ST1NCEQ0T4Z32QTYT88BNXJKC9HR3VWYHJ0TB95TP"
amount = 10000000000000000

[[ustx_balance]]
address = "STWF12K119FTA70NDG29MNYWR0CPMF44ZKC2SG2T"
amount = 24378281250000

[[ustx_balance]]
address = "ST36G5CRHH1GJVZGFWPTW4H9GSA8VAVWM0ST7AV82"
amount = 24378281250000

[[ustx_balance]]
address = "ST2KWFMX0SVXFMZ0W7TXZ3MV0C6V276BNAT49XAQW"
amount = 24378281250000

[[ustx_balance]]
address = "ST1ZMVDYKGWF5TFGH46GEFBR273JJ3RRTHEDETKNH"
amount = 24378281250000

[[ustx_balance]]
address = "ST3D0TEK871ZMBFFF0998YY609A1QGM6ZTYCQJJFQ"
amount = 24378281250000

[[ustx_balance]]
address = "ST372ND8K8M3GKESD0KG8ZWJ6EV0GGXWXC5246MJN"
amount = 24378281250000

[[ustx_balance]]
address = "ST33PA4H3TW3DQFHG2RXPGGW1FFG5YQJ704B3DA8M"
amount = 24378281250000

[[ustx_balance]]
address = "STJ737JNPK525J86BGSPAW362SRRAYC4SP6F95HC"
amount = 24378281250000

[[ustx_balance]]
address = "ST21AJANGK9NA2ZED5D5J1VZPTVW8DY05B0ECMFN"
amount = 24378281250000

[[ustx_balance]]
address = "ST30Z74A4S2T8563D844ENSBHBFSVQEVBPV9S0A7E"
amount = 24378281250000

[[ustx_balance]]
address = "ST2FGTGYAGJVXJZQX17NBJNSQAM4J2V5JFDHEEAZQ"
amount = 24378281250000

[[ustx_balance]]
address = "ST16PC3G9BMQH0G37JGAGDGYZPDB5NGNARBDFPWYB"
amount = 24378281250000

[[ustx_balance]]
address = "ST1XJHGBSQPV9B14HFYG98ZBSQGKG8GN0AMB3V2VT"
amount = 24378281250000

[[ustx_balance]]
address = "ST2XDC0R30841X2RRECWV2F9KTANKQEERPS4V3H9D"
amount = 24378281250000

[[ustx_balance]]
address = "ST2HC6JENRNNE6YVATT7WZVZWVR5J26BGYX67W8G7"
amount = 24378281250000

[[ustx_balance]]
address = "STPW2CGZC98EZ95XYC9DE93SFBS5KA2PYYK89VHM"
amount = 24378281250000

[[ustx_balance]]
address = "STNX3E9MYTA2ZDQK53YNMMJ3E7783DC019JZNYZZ"
amount = 24378281250000

[[ustx_balance]]
address = "ST0D135PF2R0S4B6S4G49QZC69KF19MSZ4Z5RDF5"
amount = 24378281250000
hstove commented 3 weeks ago

Hey @pc-quiknode , it turns out that this issue arises from an error in the documented config for Nakamoto Testnet. Your config has epoch 3.0 activate at 41,111, but the correct activation height is 2,000,250.

The example configuration has been updated.

To be more clear, you need to update this part of your config:

[[burnchain.epochs]]
epoch_name = "3.0"
start_height = 2_000_250