Bounty #2:
Based on snailbrain's latest namecoin-qt I have the following problem:
- manually create and submit a tx to send full balance of addr1
-> part to addr2
-> part back to addr1 (think change back to sending address)
- The transaction is sent correctly but the wallet is updated only for the debit of addr1 and credit of addr2. For some reason the credit of addr1 is ignored, even when the the tx is included in a block
- restarting namecoind with -rescan gets that balance back
I need the above to work as in bitcoin, i.e. when sending to the address the output belongs to, both debit and credit to that address get processed by the wallet.
I have 1 BTC up for grabs for that fix, and I'll also try to fix it myself time permitting.
Yesterday I asked for pointers on #bitcoin-dev and instead of tech advice I got a "you shouldn't do that"... oh well.
maybe try the update..
testing "seemed" to show the correct amounts?
I have just tried again updated to commit 8166101ae213932a3f1aa095514eb682b3afb10e, and the behaviour still exists.
$ namecoind getrawtransaction 9846d830e40493c0c72147e959a66d2769589d69dd3d05946868f1a48649fd9e 1
{
"hex" : "0100000001806b08da2f9175701c49a17492756030d1dc23d12f6c55f3a1c4dd53965fc6d1010000008c493046022100dc04b4e883bb15e46743c1298998223174fa73a175a1b4b461a366767282acf2022100ae2a7be906546f11a27f4d111e63aa585d0d7298a38c4de8ee07360aec13589d0141043cadb089ec6f22fafe75e859b593dc6ef9d896a2960254f847c1ab9009b9e9880e4ef55db17d7f17bdaeb523c7290e34f4c5e8779147b5d236562f794ab0426dffffffff0200943577000000001976a9146f577163208cbc1b624d248bc768bcdb49e0dce688ac00ca9a3b000000001976a914bc744a8542b08214d604efefafc5cf743e369c8c88ac00000000",
"txid" : "9846d830e40493c0c72147e959a66d2769589d69dd3d05946868f1a48649fd9e",
"version" : 1,
"locktime" : 0,
"vin" : [
{
"txid" : "d1c65f9653ddc4a1f3556c2fd123dcd13060759274a1491c7075912fda086b80",
"vout" : 1,
"scriptSig" : {
"asm" : "3046022100dc04b4e883bb15e46743c1298998223174fa73a175a1b4b461a366767282acf2022100ae2a7be906546f11a27f4d111e63aa585d0d7298a38c4de8ee07360aec13589d01 043cadb089ec6f22fafe75e859b593dc6ef9d896a2960254f847c1ab9009b9e9880e4ef55db17d7f17bdaeb523c7290e34f4c5e8779147b5d236562f794ab0426d",
"hex" : "493046022100dc04b4e883bb15e46743c1298998223174fa73a175a1b4b461a366767282acf2022100ae2a7be906546f11a27f4d111e63aa585d0d7298a38c4de8ee07360aec13589d0141043cadb089ec6f22fafe75e859b593dc6ef9d896a2960254f847c1ab9009b9e9880e4ef55db17d7f17bdaeb523c7290e34f4c5e8779147b5d236562f794ab0426d"
},
"sequence" : 4294967295
}
],
"vout" : [
{
"value" : 20.00000000,
"n" : 0,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 6f577163208cbc1b624d248bc768bcdb49e0dce6 OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a9146f577163208cbc1b624d248bc768bcdb49e0dce688ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"N6j5xaeunEBQmDtZ5XzXH8TyWaqMWKdmFz"
]
}
},
{
"value" : 10.00000000,
"n" : 1,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 bc744a8542b08214d604efefafc5cf743e369c8c OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a914bc744a8542b08214d604efefafc5cf743e369c8c88ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"NDkpYkwmfPeS5hTqiSm2E4YQp1XrEu8j4y"
]
}
}
],
"blockhash" : "4545e816172b83a89fffc93c691f1ec4c48a0b4f1549b2e05b2a2149dbc33ce5",
"confirmations" : 1,
"time" : 1371119317,
"blocktime" : 1371119317
}
$ namecoind listunspent 0 9999999 '["N6j5xaeunEBQmDtZ5XzXH8TyWaqMWKdmFz"]'
[
{
"txid" : "9846d830e40493c0c72147e959a66d2769589d69dd3d05946868f1a48649fd9e",
"vout" : 0,
"scriptPubKey" : "76a9146f577163208cbc1b624d248bc768bcdb49e0dce688ac",
"amount" : 20.00000000,
"confirmations" : 1
}
]
$ namecoind listunspent 0 9999999 '["NDkpYkwmfPeS5hTqiSm2E4YQp1XrEu8j4y"]'
[
]
$ namecoind listaddressgroupings
[
[
[
"N6j5xaeunEBQmDtZ5XzXH8TyWaqMWKdmFz",
20.00000000,
"\"\""
],
[
"NAoLHrukBrGH8NbSMyL9sw4kBAyDN2s31L",
0.00000000,
""
],
]
]