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

pox_is_active sometimes set to true when it shouldn't be

Open CharlieC3 opened this issue 4 months ago • 0 comments

It seems a node can sometimes find itself in a scenario where pox_is_active on /v2/pox shows true when the amount of stacked stacks is less than the pox activation threshold:

  "current_cycle": {
    "id": 224,
    "min_threshold_ustx": 2166760000000000,
    "stacked_ustx": 0,
    "is_pox_active": true
  },

This happened in a closed regtest deployment which resulted in a stall because of pox deactivating, so I'm not sure of the likelihood of this occurring in a bigger open network. But it's still a strange result. It seems internally the node is aware pox is deactivated but the data it displays externally is getting the status from elsewhere that doesn't get updated as frequently. Here's a link to a chainstate from the aforementioned stalled node in this state: https://drive.google.com/file/d/1NYceDhEEyPPx8FWMA25ce45QC8gzZ4c9/view?usp=sharing

CharlieC3 avatar Oct 07 '24 19:10 CharlieC3