babylonchain / btc-staker

Other
25 stars 16 forks source link

Impact of staking below threshold #120

Open nodebrand opened 7 months ago

nodebrand commented 7 months ago

If I try to stake a small amount of BTC that is below the threshold and the transaction is successful, I get this error:

time="2024-03-14T04:42:02+01:00" level=fatal msg="Failed to build delegation data for already confirmed staking transaction" btcTxHash=e8441dcea0ed58be96fb6e003dfe232f5f5464b77053c273067e40fef3c20fed err="buidling slashing transaction failed: transaction contains a dust output" stakerAddress=tb1qmsz3gdl6neavnvu4s4dj8a64kqhumyhsdukgf4

Is there any way to solve this?

aaronisme commented 6 months ago

I think this is because you have an dust output in your bitcoin transaction, the output value should be larger than 546 sat