sirduney/dunes-cli

Wallet fragmented by all the 1.5 doge outputs

Opened this issue · 3 comments

Each single mint produced by 'node dunes.js mintDune' also produces a 1.5 doge change output, until the wallet is totally fragmented. Due to another bug, dunes-cli doesn't even work on such a fragmented wallet, so the whole thing then stops working.

https://github.com/sirduney/dunes-cli/blob/master/dunes.js#L907 says

the total doge we need per mint is the fee, the output and a safety buffer of 1.5 doge so that the change is not taken as fee

But there seems to be a 2 tx process, so in the second stage there doesn't need to be any change, therefore this reason doesn't apply.

If anyone finds wallet software that works for recombining all these utxos, there will be a high fee for listing them all in the tx. It also spams the blockchain with unneeded 1.5 doge outputs, and attempts to recombine them.

use wallet split command and split the wallet down to 1

That sounds like a partial workaround. I tried it just now and got {"result":null,"error":{"code":-26,"message":"64: tx-size"},"id":0} so it didn't work in this case. Probably the tx would have been too big. But it looks like by editing the .wallet.json file to do less at a time it works (it might take several steps to do it fully). Thank you.

try using my Dunes GUI ( https://github.com/GreatApe42069/dunes-gui.git ) and split the wallet to 3, i had the same problem it froze my minter up because it kept creating utxos during minting and deploying but didn't consolidate them back afterwards. so i split wallet back into 3 and everything started working fine again