Primecoind sendmany issue

Hi,

Yesterday, I have created a transaction with sendmany “” ‘{with 10 addresses}’ for 8.31 xpm.
My daemon accepted the transaction with txid 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226
Now, i’m still waiting to see this transaction be integrated in blockchain…
The only thing i can see is that my server try to submit this transaction, for now without success:

CTransaction(hash=52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226, ver=1, vin.size=1, vout.size=12, nLockTime=0) 2014-10-31 21:40:27 AddToWallet 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 new 2014-10-31 21:40:27 CTxMemPool::accept() : accepted 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 (poolsz 2) 2014-10-31 21:40:27 Relaying wtx 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 2014-10-31 21:40:28 received getdata for: tx 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 2014-10-31 21:40:28 received getdata for: tx 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 2014-10-31 21:49:11 Relaying wtx 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 2014-10-31 21:49:11 received getdata for: tx 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 2014-10-31 22:07:23 Relaying wtx 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 2014-10-31 22:07:23 received getdata for: tx 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 2014-10-31 22:07:23 received getdata for: tx 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 2014-10-31 22:16:52 Relaying wtx 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 2014-10-31 22:16:52 received getdata for: tx 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 2014-10-31 22:32:47 Relaying wtx 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 ... 2014-11-01 20:12:18 received getdata for: tx 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 2014-11-01 20:12:18 received getdata for: tx 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 2014-11-01 20:39:13 Relaying wtx 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 2014-11-01 20:39:13 received getdata for: tx 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226
How long can it take to send xpm by this way ?

I saw this on one of my nodes:

2014-11-01 09:22:39 ERROR: CTransaction::CheckTransaction() : txout.nValue below minimum
2014-11-01 09:22:39 ERROR: CTxMemPool::accept() : CheckTransaction failed
2014-11-01 09:22:39 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 from 195.154.171.191:33005 /Satoshi:0.8.3/ was not accepted into the memory pool
2014-11-01 09:22:39 Misbehaving: 195.154.171.191:33005 (0 -> 100) DISCONNECTING
2014-11-01 09:22:39 disconnecting node 195.154.171.191:33005

So this node thinks your transaction is invalid. “txout.nValue below minimum” means that one of the outputs was below 0.01 XPM. I’m not sure how that’s possible.

The pending transaction is stored in your wallet.dat file. You can try running the wallet with -salvagewallet in order to get rid of the invalid transaction. Make sure you have a backup before you try that.

Hmmm… “one of the outputs was below 0.01 XPM” … it seems that it’s something else, there is the detail of the transaction :

# primecoind gettransaction 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 { "amount" : -8.30339138, "fee" : -0.01000000, "confirmations" : 0, "txid" : "52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226", "time" : 1414791709, "timereceived" : 1414791709, "comment" : "pool-prime.net payment", "details" : [ { "account" : "", "address" : "AdrBE66HdT9DPXNeQDsh54fdyytG59vnAD", "category" : "send", "amount" : -2.97023830, "fee" : -0.01000000 }, { "account" : "", "address" : "AJK73gRWoE8w9V7vUQ4ccyGCCs9Mha3EE9", "category" : "send", "amount" : -1.55082188, "fee" : -0.01000000 }, { "account" : "", "address" : "AG7ofBFDfjoPNWvYapLUj2DL4KXDMSyNJA", "category" : "send", "amount" : -0.88775741, "fee" : -0.01000000 }, { "account" : "", "address" : "ALqEZWdP8npiQnX1NejFUF5Agc6VPV6ooe", "category" : "send", "amount" : -0.82607699, "fee" : -0.01000000 }, { "account" : "", "address" : "AcQSa8z8aHgtmZRzBwa8zdmAmQ7a65Dx9G", "category" : "send", "amount" : -0.64103575, "fee" : -0.01000000 }, { "account" : "", "address" : "AWVdqMHfSTQSM4E8Hw9aXK43rD3TnrQBYd", "category" : "send", "amount" : -0.40312557, "fee" : -0.01000000 }, { "account" : "", "address" : "ATrgZbVDNfXHnvBXtjFwAk3RMPsmHMiiTk", "category" : "send", "amount" : -0.34364803, "fee" : -0.01000000 }, { "account" : "", "address" : "AVvA9GzufY6p7XPjyqUWgJrvDA7fxjvGRS", "category" : "send", "amount" : -0.31721357, "fee" : -0.01000000 }, { "account" : "", "address" : "AZnscZzp9UEnwxQyRcfLXj3E38eqjmnQt6", "category" : "send", "amount" : -0.22469294, "fee" : -0.01000000 }, { "account" : "", "address" : "ATP6izzB8BEPzfHK9YWyJrSfxJernpU6pQ", "category" : "send", "amount" : -0.08591201, "fee" : -0.01000000 }, { "account" : "", "address" : "AbDCiMwKjBdYcY5GM3495C9wAi7uxb99Bw", "category" : "send", "amount" : -0.05286893, "fee" : -0.01000000 } ] }
I have checked before send it that there is no output below 0.01 xpm...

Can you also post the output of “primecoind getrawtransaction 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 1”? That will show the decoded form of the actual raw transaction.

# primecoind getrawtransaction 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 01000000017ec7bd2d482a2ab9f11dd5dd9e1d15e520712de3654b8372c906cae0414ab0cc000000006b483045022054a9087fdaddbaebf8e071c9068bc9d0916064274ea84fd133f977f43ac4bf27022100ebe33616e142c44c238df94fd12d352d25e16760c0107f5d2f84ffd8bcd0b1ed0121030a00ab5530c6b636b01653b3fa0d030ea0b13f3d852876b11a3d32bc662a6721ffffffff0c5639b411000000001976a914f2231afcc52d7b8109a8ea6cab8d09bb3ec1418888accc5d3e09000000001976a9141bd854f64f3a2bf065826a6bb1a1e15b46e231a488ac3d9c4a05000000001976a91403c4fd6f3692ecbd7ab6672f677c7846f68b42b288ac537eec04000000001976a914377b55bf59f68441bcc3618ed31cafbabce947c788ac9724d203000000001976a914e24cf97d0b30a2b1df21e70663c5fd2b3731bf8988aced1e6702000000001976a914a177b3713ba845eaf0b081c05fd90930a502c6be88ac7e150a00000000001976a9144a4f62f136ffff9a95e3e484a1707ce5c195f5bd88ac835d0c02000000001976a914848a56188c0a45abee3d8d0d45bd8d318f4e656088ac8d07e401000000001976a9149b22dbe65170755b7a16f6fac9c5757ce6826ff988acaeda5601000000001976a914c5a2a6fdf5eb75f8d2d6edfde8078c3af832867388ac61178300000000001976a9147f52dbe3357095f5060f4fca2c359811dc4caee788acedab5000000000001976a914d534b4771822d26348dc42f93e4e23c7f94f60fd88ac00000000

Sorry, i forgot the last arg…

# primecoind getrawtransaction 52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226 1 { "hex" : "01000000017ec7bd2d482a2ab9f11dd5dd9e1d15e520712de3654b8372c906cae0414ab0cc000000006b483045022054a9087fdaddbaebf8e071c9068bc9d0916064274ea84fd133f977f43ac4bf27022100ebe33616e142c44c238df94fd12d352d25e16760c0107f5d2f84ffd8bcd0b1ed0121030a00ab5530c6b636b01653b3fa0d030ea0b13f3d852876b11a3d32bc662a6721ffffffff0c5639b411000000001976a914f2231afcc52d7b8109a8ea6cab8d09bb3ec1418888accc5d3e09000000001976a9141bd854f64f3a2bf065826a6bb1a1e15b46e231a488ac3d9c4a05000000001976a91403c4fd6f3692ecbd7ab6672f677c7846f68b42b288ac537eec04000000001976a914377b55bf59f68441bcc3618ed31cafbabce947c788ac9724d203000000001976a914e24cf97d0b30a2b1df21e70663c5fd2b3731bf8988aced1e6702000000001976a914a177b3713ba845eaf0b081c05fd90930a502c6be88ac7e150a00000000001976a9144a4f62f136ffff9a95e3e484a1707ce5c195f5bd88ac835d0c02000000001976a914848a56188c0a45abee3d8d0d45bd8d318f4e656088ac8d07e401000000001976a9149b22dbe65170755b7a16f6fac9c5757ce6826ff988acaeda5601000000001976a914c5a2a6fdf5eb75f8d2d6edfde8078c3af832867388ac61178300000000001976a9147f52dbe3357095f5060f4fca2c359811dc4caee788acedab5000000000001976a914d534b4771822d26348dc42f93e4e23c7f94f60fd88ac00000000", "txid" : "52e87b272dd880b04ad9ccd87d08b7452d6c66133fcc10dde3193c5f01ac6226", "version" : 1, "locktime" : 0, "vin" : [ { "txid" : "ccb04a41e0ca06c972834b65e32d7120e5151d9eddd51df1b92a2a482dbdc77e", "vout" : 0, "scriptSig" : { "asm" : "3045022054a9087fdaddbaebf8e071c9068bc9d0916064274ea84fd133f977f43ac4bf27022100ebe33616e142c44c238df94fd12d352d25e16760c0107f5d2f84ffd8bcd0b1ed01 030a00ab5530c6b636b01653b3fa0d030ea0b13f3d852876b11a3d32bc662a6721", "hex" : "483045022054a9087fdaddbaebf8e071c9068bc9d0916064274ea84fd133f977f43ac4bf27022100ebe33616e142c44c238df94fd12d352d25e16760c0107f5d2f84ffd8bcd0b1ed0121030a00ab5530c6b636b01653b3fa0d030ea0b13f3d852876b11a3d32bc662a6721" }, "sequence" : 4294967295 } ], "vout" : [ { "value" : 2.97023830, "n" : 0, "scriptPubKey" : { "asm" : "OP_DUP OP_HASH160 f2231afcc52d7b8109a8ea6cab8d09bb3ec14188 OP_EQUALVERIFY OP_CHECKSIG", "hex" : "76a914f2231afcc52d7b8109a8ea6cab8d09bb3ec1418888ac", "reqSigs" : 1, "type" : "pubkeyhash", "addresses" : [ "AdrBE66HdT9DPXNeQDsh54fdyytG59vnAD" ] } }, { "value" : 1.55082188, "n" : 1, "scriptPubKey" : { "asm" : "OP_DUP OP_HASH160 1bd854f64f3a2bf065826a6bb1a1e15b46e231a4 OP_EQUALVERIFY OP_CHECKSIG", "hex" : "76a9141bd854f64f3a2bf065826a6bb1a1e15b46e231a488ac", "reqSigs" : 1, "type" : "pubkeyhash", "addresses" : [ "AJK73gRWoE8w9V7vUQ4ccyGCCs9Mha3EE9" ] } }, { "value" : 0.88775741, "n" : 2, "scriptPubKey" : { "asm" : "OP_DUP OP_HASH160 03c4fd6f3692ecbd7ab6672f677c7846f68b42b2 OP_EQUALVERIFY OP_CHECKSIG", "hex" : "76a91403c4fd6f3692ecbd7ab6672f677c7846f68b42b288ac", "reqSigs" : 1, "type" : "pubkeyhash", "addresses" : [ "AG7ofBFDfjoPNWvYapLUj2DL4KXDMSyNJA" ] } }, { "value" : 0.82607699, "n" : 3, "scriptPubKey" : { "asm" : "OP_DUP OP_HASH160 377b55bf59f68441bcc3618ed31cafbabce947c7 OP_EQUALVERIFY OP_CHECKSIG", "hex" : "76a914377b55bf59f68441bcc3618ed31cafbabce947c788ac", "reqSigs" : 1, "type" : "pubkeyhash", "addresses" : [ "ALqEZWdP8npiQnX1NejFUF5Agc6VPV6ooe" ] } }, { "value" : 0.64103575, "n" : 4, "scriptPubKey" : { "asm" : "OP_DUP OP_HASH160 e24cf97d0b30a2b1df21e70663c5fd2b3731bf89 OP_EQUALVERIFY OP_CHECKSIG", "hex" : "76a914e24cf97d0b30a2b1df21e70663c5fd2b3731bf8988ac", "reqSigs" : 1, "type" : "pubkeyhash", "addresses" : [ "AcQSa8z8aHgtmZRzBwa8zdmAmQ7a65Dx9G" ] } }, { "value" : 0.40312557, "n" : 5, "scriptPubKey" : { "asm" : "OP_DUP OP_HASH160 a177b3713ba845eaf0b081c05fd90930a502c6be OP_EQUALVERIFY OP_CHECKSIG", "hex" : "76a914a177b3713ba845eaf0b081c05fd90930a502c6be88ac", "reqSigs" : 1, "type" : "pubkeyhash", "addresses" : [ "AWVdqMHfSTQSM4E8Hw9aXK43rD3TnrQBYd" ] } }, { "value" : 0.00660862, "n" : 6, "scriptPubKey" : { "asm" : "OP_DUP OP_HASH160 4a4f62f136ffff9a95e3e484a1707ce5c195f5bd OP_EQUALVERIFY OP_CHECKSIG", "hex" : "76a9144a4f62f136ffff9a95e3e484a1707ce5c195f5bd88ac", "reqSigs" : 1, "type" : "pubkeyhash", "addresses" : [ "ANYnkZfd8TXkfn6RF9SD9fpMiPRz9XnCuz" ] } }, { "value" : 0.34364803, "n" : 7, "scriptPubKey" : { "asm" : "OP_DUP OP_HASH160 848a56188c0a45abee3d8d0d45bd8d318f4e6560 OP_EQUALVERIFY OP_CHECKSIG", "hex" : "76a914848a56188c0a45abee3d8d0d45bd8d318f4e656088ac", "reqSigs" : 1, "type" : "pubkeyhash", "addresses" : [ "ATrgZbVDNfXHnvBXtjFwAk3RMPsmHMiiTk" ] } }, { "value" : 0.31721357, "n" : 8, "scriptPubKey" : { "asm" : "OP_DUP OP_HASH160 9b22dbe65170755b7a16f6fac9c5757ce6826ff9 OP_EQUALVERIFY OP_CHECKSIG", "hex" : "76a9149b22dbe65170755b7a16f6fac9c5757ce6826ff988ac", "reqSigs" : 1, "type" : "pubkeyhash", "addresses" : [ "AVvA9GzufY6p7XPjyqUWgJrvDA7fxjvGRS" ] } }, { "value" : 0.22469294, "n" : 9, "scriptPubKey" : { "asm" : "OP_DUP OP_HASH160 c5a2a6fdf5eb75f8d2d6edfde8078c3af8328673 OP_EQUALVERIFY OP_CHECKSIG", "hex" : "76a914c5a2a6fdf5eb75f8d2d6edfde8078c3af832867388ac", "reqSigs" : 1, "type" : "pubkeyhash", "addresses" : [ "AZnscZzp9UEnwxQyRcfLXj3E38eqjmnQt6" ] } }, { "value" : 0.08591201, "n" : 10, "scriptPubKey" : { "asm" : "OP_DUP OP_HASH160 7f52dbe3357095f5060f4fca2c359811dc4caee7 OP_EQUALVERIFY OP_CHECKSIG", "hex" : "76a9147f52dbe3357095f5060f4fca2c359811dc4caee788ac", "reqSigs" : 1, "type" : "pubkeyhash", "addresses" : [ "ATP6izzB8BEPzfHK9YWyJrSfxJernpU6pQ" ] } }, { "value" : 0.05286893, "n" : 11, "scriptPubKey" : { "asm" : "OP_DUP OP_HASH160 d534b4771822d26348dc42f93e4e23c7f94f60fd OP_EQUALVERIFY OP_CHECKSIG", "hex" : "76a914d534b4771822d26348dc42f93e4e23c7f94f60fd88ac", "reqSigs" : 1, "type" : "pubkeyhash", "addresses" : [ "AbDCiMwKjBdYcY5GM3495C9wAi7uxb99Bw" ] } } ] }

Also, the command i have used :

primecoind sendmany "" '{"AdrBE66HdT9DPXNeQDsh54fdyytG59vnAD": 2.9702383, "AJK73gRWoE8w9V7vUQ4ccyGCCs9Mha3EE9": 1.55082188, "AG7ofBFDfjoPNWvYapLUj2DL4KXDMSyNJA": 0.88775741, "ALqEZWdP8npiQnX1NejFUF5Agc6VPV6ooe": 0.82607699, "AcQSa8z8aHgtmZRzBwa8zdmAmQ7a65Dx9G": 0.64103575, "AWVdqMHfSTQSM4E8Hw9aXK43rD3TnrQBYd": 0.40312557, "ATrgZbVDNfXHnvBXtjFwAk3RMPsmHMiiTk": 0.34364803, "AVvA9GzufY6p7XPjyqUWgJrvDA7fxjvGRS": 0.31721357, "AZnscZzp9UEnwxQyRcfLXj3E38eqjmnQt6": 0.22469294, "ATP6izzB8BEPzfHK9YWyJrSfxJernpU6pQ": 0.08591201, "AbDCiMwKjBdYcY5GM3495C9wAi7uxb99Bw": 0.05286893}' "1" "pool-prime.net payment"

Well, unfortunately the transaction is invalid because of this:

{ "value" : 0.00660862, "n" : 6, "scriptPubKey" : { "asm" : "OP_DUP OP_HASH160 4a4f62f136ffff9a95e3e484a1707ce5c195f5bd OP_EQUALVERIFY OP_CHECKSIG", "hex" : "76a9144a4f62f136ffff9a95e3e484a1707ce5c195f5bd88ac", "reqSigs" : 1, "type" : "pubkeyhash", "addresses" : [ "ANYnkZfd8TXkfn6RF9SD9fpMiPRz9XnCuz" ] } },

That’s the “change” that was left over. The input side has 8.32 XPM in this transaction. The outputs you gave add up to 8.30339138 (plus a fee of 0.01 XPM). That leaves 0.00660862 XPM.

According to the code, if the change is too small, it will be moved to the transaction fee. That didn’t happen for you, which is confusing. Which version of the wallet are you using and you have modified the code in some way? (Specifically, have you touched MIN_TXOUT_AMOUNT?)

It could also be a bug in the code, but right now I don’t see where it could be.

Also, since the transaction is invalid, you should get rid of it (see what I wrote about -salvagewallet earlier).

You were right, my running version has a MIN_TXOUT_AMOUNT = 0.001 XPM (i have made some tests, and forgot to rollback them all)…
By chance, the option -salvagewallet woked well to destroy the bad transactions.
I have submitted the same sandmany, now with success :slight_smile:

Thank you very much mikaelh !