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

Inability to sign staking transaction #73

Open
filippos47 opened this issue Oct 17, 2024 · 1 comment
Open

Inability to sign staking transaction #73

filippos47 opened this issue Oct 17, 2024 · 1 comment

Comments

@filippos47
Copy link
Member

Version: v0.8.0

Tx gets pre-approved on bbn:

time="2024-10-17T07:52:57Z" level=debug msg="Received not enough covenant unbonding signatures on babylon" numSignatures=0 required=3 stakingTxHash=35a92bbe7c50bfa4421d8781bfd0f377b4562fc71a4ab3ec72c427a08b2f6c56
time="2024-10-17T07:53:17Z" level=debug msg="Received enough covenant unbonding signatures on babylon" numSignatures=5 stakingTxHash=35a92bbe7c50bfa4421d8781bfd0f377b4562fc71a4ab3ec72c427a08b2f6c56
time="2024-10-17T07:53:17Z" level=debug msg="Received staking event" event=UNBONDING_TX_SIGNATURES_CONFIRMED_ON_BABYLON eventId=35a92bbe7c50bfa4421d8781bfd0f377b4562fc71a4ab3ec72c427a08b2f6c56
time="2024-10-17T07:53:18Z" level=debug msg="Processed staking event" event=UNBONDING_TX_SIGNATURES_CONFIRMED_ON_BABYLON eventId=35a92bbe7c50bfa4421d8781bfd0f377b4562fc71a4ab3ec72c427a08b2f6c56

Fails to be signed by BTC node due to mempool error (appears 5 times, one time per minute)

time="2024-10-17T07:54:18Z" level=error msg="failed to send staking transaction to btc chain to activate verified delegation" err="-26: txn-mempool-conflict" stakingTxHash=35a92bbe7c50bfa4421d8781bfd0f377b4562fc71a4ab3ec72c427a08b2f6c56

Finally, this log now appears every 1 min:

time="2024-10-17T07:59:18Z" level=debug msg="cannot sign staking transction with configured wallet" stakingTxHash=35a92bbe7c50bfa4421d8781bfd0f377b4562fc71a4ab3ec72c427a08b2f6c56

I suggested whether this could be related to selecting an already-used UTXO and could be resolved by marking a UTXO as unspendable before starting to consruct the staking tx.

@filippos47
Copy link
Member Author

This is due to multiple BTC staker daemons using the same BTC wallet.
We've discussed offline that btc-staker doesn't support this atm, and each staker requires its own wallet.
We should document this in the upcoming BTC staker doc.

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

No branches or pull requests

1 participant