Closed lgalabru closed 1 year ago
Your logs don't include that snippet
Apologies, this should be right logs: debg-trace.txt
Can you confirm what build of the node you are using?
The build was based on the branch you shared with me yesterday (that does not include your commits from today), I'll try to reproduce with a build more recent.
Ok, it looks like latest builds should be fixing this issue (1 successful test out of 1).
Cycle 2 - Pre bitcoin op
{
"contract_id": "ST000000000000000000002AMW42H.pox-2",
"pox_activation_threshold_ustx": 50286942145278,
"first_burnchain_block_height": 100,
"current_burnchain_block_height": 114,
"prepare_phase_block_length": 4,
"reward_phase_block_length": 6,
"reward_slots": 12,
"rejection_fraction": 25,
"total_liquid_supply_ustx": 1005738842905579,
"current_cycle": {
"id": 1,
"min_threshold_ustx": 20960000000000,
"stacked_ustx": 0,
"is_pox_active": false
},
"next_cycle": {
"id": 2,
"min_threshold_ustx": 20960000000000,
"min_increment_ustx": 125717355363,
"stacked_ustx": 0,
"prepare_phase_start_block_height": 116,
"blocks_until_prepare_phase": 2,
"reward_phase_start_block_height": 120,
"blocks_until_reward_phase": 6,
"ustx_until_pox_rejection": 251434710726375
},
"min_amount_ustx": 20960000000000,
"prepare_cycle_length": 4,
"reward_cycle_id": 1,
"reward_cycle_length": 10,
"rejection_votes_left_required": 251434710726375,
"next_reward_cycle_in": 6,
"contract_versions": [
{
"contract_id": "ST000000000000000000002AMW42H.pox",
"activation_burnchain_block_height": 100,
"first_reward_cycle_id": 0
},
{
"contract_id": "ST000000000000000000002AMW42H.pox-2",
"activation_burnchain_block_height": 110,
"first_reward_cycle_id": 2
}
]
}
Cycle 2 - Post bitcoin op
{
"contract_id": "ST000000000000000000002AMW42H.pox-2",
"pox_activation_threshold_ustx": 50286942145278,
"first_burnchain_block_height": 100,
"current_burnchain_block_height": 116,
"prepare_phase_block_length": 4,
"reward_phase_block_length": 6,
"reward_slots": 12,
"rejection_fraction": 25,
"total_liquid_supply_ustx": 1005738842905579,
"current_cycle": {
"id": 1,
"min_threshold_ustx": 20960000000000,
"stacked_ustx": 0,
"is_pox_active": false
},
"next_cycle": {
"id": 2,
"min_threshold_ustx": 20960000000000,
"min_increment_ustx": 125717355363,
"stacked_ustx": 90000000000000,
"prepare_phase_start_block_height": 116,
"blocks_until_prepare_phase": 0,
"reward_phase_start_block_height": 120,
"blocks_until_reward_phase": 4,
"ustx_until_pox_rejection": 251434710726375
},
"min_amount_ustx": 20960000000000,
"prepare_cycle_length": 4,
"reward_cycle_id": 1,
"reward_cycle_length": 10,
"rejection_votes_left_required": 251434710726375,
"next_reward_cycle_in": 4,
"contract_versions": [
{
"contract_id": "ST000000000000000000002AMW42H.pox",
"activation_burnchain_block_height": 100,
"first_reward_cycle_id": 0
},
{
"contract_id": "ST000000000000000000002AMW42H.pox-2",
"activation_burnchain_block_height": 110,
"first_reward_cycle_id": 2
}
]
}
Cycle 3
{
"contract_id": "ST000000000000000000002AMW42H.pox-2",
"pox_activation_threshold_ustx": 50286942145278,
"first_burnchain_block_height": 100,
"current_burnchain_block_height": 121,
"prepare_phase_block_length": 4,
"reward_phase_block_length": 6,
"reward_slots": 12,
"rejection_fraction": 25,
"total_liquid_supply_ustx": 1005738842905579,
"current_cycle": {
"id": 2,
"min_threshold_ustx": 20960000000000,
"stacked_ustx": 90000000000000,
"is_pox_active": true
},
"next_cycle": {
"id": 3,
"min_threshold_ustx": 20960000000000,
"min_increment_ustx": 125717355363,
"stacked_ustx": 90000000000000,
"prepare_phase_start_block_height": 126,
"blocks_until_prepare_phase": 5,
"reward_phase_start_block_height": 130,
"blocks_until_reward_phase": 9,
"ustx_until_pox_rejection": 251434710726375
},
"min_amount_ustx": 20960000000000,
"prepare_cycle_length": 4,
"reward_cycle_id": 2,
"reward_cycle_length": 10,
"rejection_votes_left_required": 251434710726375,
"next_reward_cycle_in": 9,
"contract_versions": [
{
"contract_id": "ST000000000000000000002AMW42H.pox",
"activation_burnchain_block_height": 100,
"first_reward_cycle_id": 0
},
{
"contract_id": "ST000000000000000000002AMW42H.pox-2",
"activation_burnchain_block_height": 110,
"first_reward_cycle_id": 2
}
]
}
Will close the issue, thanks @jcnelson!
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Still performing some testing on the Bitcoin Stacks ops, and I'm experiencing a new kind of issue. This could be related to the fact that my node was tweaked for performing short reward cycles (for faster feedback loop), my config is the following: Pox Cycle: 10 blocks (6 rewards, 4 prepare) Epoch 2: 100 Epoch 2.05: 101 Epoch 2.1: 103 Pox 2 Activation: 110 I fetched
/v2/pox
after block 110, got the expectedpox-2
values. I'm submitting a Bitcoin Stacks STX OP, which was included in Bitcoin Block 116. Fetching/v2/pox
after block 117 was correctly returning the STX stacked over Bitcoin. After mining blocks 119, it looked the stacks-node did a rollback: fetchingv2/info
now returnsand
v2/pox
is returningThe following logs look suspicious to me:
Full logs