stacks-core icon indicating copy to clipboard operation
stacks-core copied to clipboard

PoX Event Generation Issue

Open BowTiedDevOps opened this issue 6 months ago • 3 comments

When a stacking transaction is made in the prepare phase of a cycle, the event that is being displayed is incrementing the start-cycle-id variable by 1, but not the end-cycle-id, hence making the 2 variables show the same cycle.

Reference transactions:

  • stack-stx call where this happens: https://explorer.hiro.so/txid/0xf92194a3ceaaa6e338150584dfe73c1a73dfcced0d9f04314fa855e94edeba89.
  • Normal stack-stx call: https://explorer.hiro.so/txid/0xee4667bcac49fcb169c8902e96565f56ec201864d1d1c0f11668e73f53977549
  • Normal stack-stx call: https://explorer.hiro.so/txid/0xd472f61263fdad0234fd011ad0f319bc1ffb348688319885364e041410890430

This might not be an issue at all, and actually be the expected behavior. A suggested fix by @janniks in order to increase clarity in the events would be to add an stacking_cycles entry to the event that would show how many cycles is the user stacking (end-cycle-id - start-cycle-id). In this case, that would be 0, because the user will not be stacking.

BowTiedDevOps avatar Aug 26 '24 18:08 BowTiedDevOps