Skip to content

Trigger removal changes#1185

Merged
schinzelh merged 1 commit intodashpay:v0.12.1.xfrom
tgflynn:v0.12.1.x-fix-trigger-removal
Dec 3, 2016
Merged

Trigger removal changes#1185
schinzelh merged 1 commit intodashpay:v0.12.1.xfrom
tgflynn:v0.12.1.x-fix-trigger-removal

Conversation

@tgflynn
Copy link

@tgflynn tgflynn commented Dec 3, 2016

  • Do not expire superblock triggers on execution
  • Expire trigger objects about 1 day (576 blocks) after their event height is past

Current code is expiring superblock triggers immediately after execution by miner block creation. This is not safe because there is no guarantee that these blocks will make it into the chain, so the triggers may be needed again.

With this change superblock triggers are expired only after a set number of blocks have past from their event height. The number chosen is 576 or 1 day. This should be enough to ensure that random forks won't reprocess the event block and allows some time for after the fact debugging.

  - Do not expire superblock triggers on execution
  - Expire trigger objects about 1 day (576 blocks) after their event height is past
@schinzelh schinzelh merged commit 8126e92 into dashpay:v0.12.1.x Dec 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants