Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stacks node miner should be able to recover from pending transaction #2346

Closed
kantai opened this issue Jan 14, 2021 · 2 comments
Closed

Stacks node miner should be able to recover from pending transaction #2346

kantai opened this issue Jan 14, 2021 · 2 comments

Comments

@kantai
Copy link
Member

kantai commented Jan 14, 2021

Currently, if a miner submits a block commit bitcoin transaction, but the next bitcoin block arrives without picking up that transaction, the neon_node will enter into a deteriorated state: it will try to mine a new transaction for the new block, but it may not be able to "find" a UTXO, because the only UTXO is outstanding.

There's two ways that this could be addressed (possibly both could be implemented)

  1. Set the neon_node to "wait" until the next burn block if it's unable to mine in the current block (something like Feature: do not mine in a burn block if failed already #2335)
  2. Issue a replace-by-fee transaction to update the pending transaction (this would be very beneficial, because it allows the miner to "correct" the pending transaction into a valid commitment).
@lgalabru
Copy link
Member

Should be addressed with #2383

@lgalabru
Copy link
Member

lgalabru commented Feb 5, 2021

@lgalabru lgalabru closed this as completed Feb 5, 2021
Stacks Blockchain Board automation moved this from In progress to Done Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

3 participants