Hi dev team , my production nodes is ver 0.11.2 and split 2 group : receiver nodes & sender nodes , receiver is customer wallets , sender is send to outside wallet , and I need move receiver BTCs to sender node
I use sendtoaddress command :
#SKIP
$ bitcoin-cli sendtoaddress WALLET 0.4
TXID
$ bitcoin-cli sendtoaddress WALLET 0.4
error: {"code":-4,"message":"Transaction too large"}
$ bitcoin-cli sendtoaddress WALLET 0.3
error: {"code":-4,"message":"Transaction too large"}
$ bitcoin-cli sendtoaddress WALLET 0.25
error: {"code":-4,"message":"Transaction too large"}
$ bitcoin-cli sendtoaddress WALLET 0.20
TXID
$ bitcoin-cli sendtoaddress WALLET 0.2
error: {"code":-4,"message":"Transaction too large"}
$ bitcoin-cli sendtoaddress WALLET 0.15
TXID
$ bitcoin-cli sendtoaddress WALLET 0.2
error: {"code":-4,"message":"Transaction too large"}
$ bitcoin-cli listaccounts
{
"" : OVER20
}
$ bitcoin-cli sendtoaddress WALLET 0.2
error: {"code":-4,"message":"Transaction too large"}
$ bitcoin-cli sendtoaddress WALLET 0.15
TXID
$ bitcoin-cli sendtoaddress WALLET 0.15
error: {"code":-4,"message":"Transaction too large"}
$ bitcoin-cli sendtoaddress WALLET 0.1
TXID
$ bitcoin-cli sendtoaddress WALLET 0.1 ##dust is clean here
TXID
$ bitcoin-cli sendtoaddress WALLET 1
TXID
$ bitcoin-cli sendtoaddress WALLET 10
TXID
$ bitcoin-cli listaccounts
{
"" : OVER20
}
$ bitcoin-cli sendtoaddress WALLET OVER20
TXID
$ bitcoin-cli listaccounts
{
"" : CLEANED
}
I remove some details(same command and large number test) , but you can see dust be clean and some bigger amount send after dust
so how to change send BTCs algorithm? like "bigger" or "smaller" BTCs send first with out "age"? has option or need edit the source code and compile bitcoin core? or has another command or program can help me to clean dust? like
https://github.com/petertodd/dust-b-gone
but I need send to sender , not same node clean up , or just fast way to send all BTCs to sender wallet , any idea?