Bitcoincore 0.17.0.1 rpc bumpfee error “(-4) Transaction does not have a change output”











up vote
0
down vote

favorite












I am trying to work with bumpfee for bitcoind regtest (bitcoincore v 0.17.0.1) and using createrawtransaction.
Everything works for creating the raw transaction and can make it replaceable to allow rbf, but when I perform a bumpfee with the txid I get this error.
ERROR: "(-4) Transaction does not have a change output"
I have tried multiple things to remedy this and cannot figure out why this is happening.
I hope someone can point me in the right direction and I hope this is enough info. Thanks in advance..



createrawtransaction rpc post:



{"method":"createrawtransaction","params":{"inputs":[{"txid":"24fa64102ae76fe0ece50184fb7f3ac567399c18f8124378a33100c7676c72bd","vout":1,"sequence":0}],"outputs":{"2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA":0.392,"2Mw4QaLRrETNwaShCqUYnawFigkApqPZwi5":0.13533119},"locktime":0,"replaceable":true},"id":1542757229520419420,"jsonrpc":"1.0"}



bitcoin-cli gettransaction (rpc response) (new outbound tx):



{
"amount": -0.39200000,
"fee": -0.00001220,
"confirmations": 0,
"trusted": true,
"txid": "b28dfbfb945af2d589edb1f965b40fc748e88512f5ea2a1c8a6e3ad7d12bdae7",
"walletconflicts": [
],
"time": 1542757229,
"timereceived": 1542757229,
"bip125-replaceable": "yes",
"details": [
{
"address": "2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA",
"category": "send",
"amount": -0.39200000,
"vout": 0,
"fee": -0.00001220,
"abandoned": false
},
{
"address": "2Mw4QaLRrETNwaShCqUYnawFigkApqPZwi5",
"category": "send",
"amount": -0.13533119,
"label": "test1",
"vout": 1,
"fee": -0.00001220,
"abandoned": false
},
{
"address": "2Mw4QaLRrETNwaShCqUYnawFigkApqPZwi5",
"category": "receive",
"amount": 0.13533119,
"label": "test1",
"vout": 1
}
],
"hex": "02000000000101bd726c67c70031a3784312f8189c3967c53a7ffb8401e5ece06fe72a1064fa240100000017160014909972af68f27edce34211b439aeb5e022b78d540000000002002556020000000017a91402bb085119f54006554e0586682aae51a83a3c3b87bf7fce000000000017a91429d4c3e5967f0b89e94b3462d958eeac1a8b7bb88702473044022020bab01cefb3875b291d65a8989abc41544d0a7ac2491a99d1c0b07b279893e302206f8c7c59cb17f790d29cd0ccc1710a91a3d6e5cb773aa1a36afdf313843413d1012102d4561e20188b47abd0bc4e80146799372d47a2ebb5ba73256bec768f56647cb500000000"
}


bitcoin-cli decoderawtransaction (rpc response) (new outbound tx raw)



{
"txid": "b28dfbfb945af2d589edb1f965b40fc748e88512f5ea2a1c8a6e3ad7d12bdae7",
"hash": "ca12826414b65f77667a9946d5ed52c36c3d0148bb0f25fa30edcc6e4ec1eb4f",
"version": 2,
"size": 247,
"vsize": 166,
"weight": 661,
"locktime": 0,
"vin": [
{
"txid": "24fa64102ae76fe0ece50184fb7f3ac567399c18f8124378a33100c7676c72bd",
"vout": 1,
"scriptSig": {
"asm": "0014909972af68f27edce34211b439aeb5e022b78d54",
"hex": "160014909972af68f27edce34211b439aeb5e022b78d54"
},
"txinwitness": [
"3044022020bab01cefb3875b291d65a8989abc41544d0a7ac2491a99d1c0b07b279893e302206f8c7c59cb17f790d29cd0ccc1710a91a3d6e5cb773aa1a36afdf313843413d101",
"02d4561e20188b47abd0bc4e80146799372d47a2ebb5ba73256bec768f56647cb5"
],
"sequence": 0
}
],
"vout": [
{
"value": 0.39200000,
"n": 0,
"scriptPubKey": {
"asm": "OP_HASH160 02bb085119f54006554e0586682aae51a83a3c3b OP_EQUAL",
"hex": "a91402bb085119f54006554e0586682aae51a83a3c3b87",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA"
]
}
},
{
"value": 0.13533119,
"n": 1,
"scriptPubKey": {
"asm": "OP_HASH160 29d4c3e5967f0b89e94b3462d958eeac1a8b7bb8 OP_EQUAL",
"hex": "a91429d4c3e5967f0b89e94b3462d958eeac1a8b7bb887",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"2Mw4QaLRrETNwaShCqUYnawFigkApqPZwi5"
]
}
}
]
}


UTXO being used for input in new outbound tx:



{
"amount": -0.39200000,
"fee": -0.00001782,
"confirmations": 6,
"blockhash": "76f32f569fbc844a75f47a2083cf1607864d2579259b86e1c898a08909d2c796",
"blockindex": 1,
"blocktime": 1542757159,
"txid": "24fa64102ae76fe0ece50184fb7f3ac567399c18f8124378a33100c7676c72bd",
"walletconflicts": [
],
"time": 1542756725,
"timereceived": 1542756725,
"bip125-replaceable": "no",
"details": [
{
"address": "2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA",
"category": "send",
"amount": -0.39200000,
"vout": 0,
"fee": -0.00001782,
"abandoned": false
},
{
"address": "2N35kVbwnFE9y8XayYBJ34yrdTgznHcDvUf",
"category": "send",
"amount": -0.52734339,
"label": "test1",
"vout": 1,
"fee": -0.00001782,
"abandoned": false
},
{
"address": "2N35kVbwnFE9y8XayYBJ34yrdTgznHcDvUf",
"category": "receive",
"amount": 0.52734339,
"label": "test1",
"vout": 1
}
],
"hex": "02000000000102be9766bac21ba65cbb147301d86048dc7dded96fcc76b07ca1b03ae9f18adec70100000017160014fcd0c9199e9a51cd426a85cf2f01b8ac935cc00400000000ad6dc9255fc5e467b0e03a44367f11acc5a54be499a66f3b8260885d6de4442800000000484730440220460ee0469e3683a42c83c95892f88e6cdb3369c2cd52f578f2ba95223df893a402202cde319da8cf2fab17b26f7cc90d2abbcb7dd0dbe7bec6221523de6daaf666c5010000000002002556020000000017a91402bb085119f54006554e0586682aae51a83a3c3b8783a924030000000017a9146be6901c71689311d32e0e832c13883d3716f17b87024730440220572ed3f959b78ef4ec2b9234a966a8eb089cec178de352b79fd15382de1efec4022033a053def44dca9253641163516933eb73fbb99614b15f61056a19cdc300721c0121025d28f4945d58cb465fccd85a839a34a1d88894214ba68842a39a62846b0de9f10000000000"
}


UTXO being used for input in the new outbound tx RAW:



{
"txid": "24fa64102ae76fe0ece50184fb7f3ac567399c18f8124378a33100c7676c72bd",
"hash": "9f2bfa337ebbf882256e8b5f6cf92bca18a7a3c371f12c4376e964d465dcd605",
"version": 2,
"size": 361,
"vsize": 279,
"weight": 1114,
"locktime": 0,
"vin": [
{
"txid": "c7de8af1e93ab0a17cb076cc6fd9de7ddc4860d8017314bb5ca61bc2ba6697be",
"vout": 1,
"scriptSig": {
"asm": "0014fcd0c9199e9a51cd426a85cf2f01b8ac935cc004",
"hex": "160014fcd0c9199e9a51cd426a85cf2f01b8ac935cc004"
},
"txinwitness": [
"30440220572ed3f959b78ef4ec2b9234a966a8eb089cec178de352b79fd15382de1efec4022033a053def44dca9253641163516933eb73fbb99614b15f61056a19cdc300721c01",
"025d28f4945d58cb465fccd85a839a34a1d88894214ba68842a39a62846b0de9f1"
],
"sequence": 0
},
{
"txid": "2844e46d5d8860823b6fa699e44ba5c5ac117f36443ae0b067e4c55f25c96dad",
"vout": 0,
"scriptSig": {
"asm": "30440220460ee0469e3683a42c83c95892f88e6cdb3369c2cd52f578f2ba95223df893a402202cde319da8cf2fab17b26f7cc90d2abbcb7dd0dbe7bec6221523de6daaf666c5[ALL]",
"hex": "4730440220460ee0469e3683a42c83c95892f88e6cdb3369c2cd52f578f2ba95223df893a402202cde319da8cf2fab17b26f7cc90d2abbcb7dd0dbe7bec6221523de6daaf666c501"
},
"sequence": 0
}
],
"vout": [
{
"value": 0.39200000,
"n": 0,
"scriptPubKey": {
"asm": "OP_HASH160 02bb085119f54006554e0586682aae51a83a3c3b OP_EQUAL",
"hex": "a91402bb085119f54006554e0586682aae51a83a3c3b87",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA"
]
}
},
{
"value": 0.52734339,
"n": 1,
"scriptPubKey": {
"asm": "OP_HASH160 6be6901c71689311d32e0e832c13883d3716f17b OP_EQUAL",
"hex": "a9146be6901c71689311d32e0e832c13883d3716f17b87",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"2N35kVbwnFE9y8XayYBJ34yrdTgznHcDvUf"
]
}
}
]
}


bumpfee b28dfbfb945af2d589edb1f965b40fc748e88512f5ea2a1c8a6e3ad7d12bdae7 response:
"(-4) Transaction does not have a change output"










share|improve this question






















  • This issue has been identified.. The issue seems to be with bitcoin core v 0.17.0.1 that if you generate a new raw change address via "getrawchangeaddress" and set a label for it. Then use that newly generated raw change address in a new raw transaction (replaceable) as one of the outputs it will throw this error "(-4) Transaction does not have a change output" when trying to perform a bumpfee. If you do not set a label on the newly generated raw change address, then the bumpfee happens correctly.
    – lixid
    Nov 21 at 3:12















up vote
0
down vote

favorite












I am trying to work with bumpfee for bitcoind regtest (bitcoincore v 0.17.0.1) and using createrawtransaction.
Everything works for creating the raw transaction and can make it replaceable to allow rbf, but when I perform a bumpfee with the txid I get this error.
ERROR: "(-4) Transaction does not have a change output"
I have tried multiple things to remedy this and cannot figure out why this is happening.
I hope someone can point me in the right direction and I hope this is enough info. Thanks in advance..



createrawtransaction rpc post:



{"method":"createrawtransaction","params":{"inputs":[{"txid":"24fa64102ae76fe0ece50184fb7f3ac567399c18f8124378a33100c7676c72bd","vout":1,"sequence":0}],"outputs":{"2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA":0.392,"2Mw4QaLRrETNwaShCqUYnawFigkApqPZwi5":0.13533119},"locktime":0,"replaceable":true},"id":1542757229520419420,"jsonrpc":"1.0"}



bitcoin-cli gettransaction (rpc response) (new outbound tx):



{
"amount": -0.39200000,
"fee": -0.00001220,
"confirmations": 0,
"trusted": true,
"txid": "b28dfbfb945af2d589edb1f965b40fc748e88512f5ea2a1c8a6e3ad7d12bdae7",
"walletconflicts": [
],
"time": 1542757229,
"timereceived": 1542757229,
"bip125-replaceable": "yes",
"details": [
{
"address": "2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA",
"category": "send",
"amount": -0.39200000,
"vout": 0,
"fee": -0.00001220,
"abandoned": false
},
{
"address": "2Mw4QaLRrETNwaShCqUYnawFigkApqPZwi5",
"category": "send",
"amount": -0.13533119,
"label": "test1",
"vout": 1,
"fee": -0.00001220,
"abandoned": false
},
{
"address": "2Mw4QaLRrETNwaShCqUYnawFigkApqPZwi5",
"category": "receive",
"amount": 0.13533119,
"label": "test1",
"vout": 1
}
],
"hex": "02000000000101bd726c67c70031a3784312f8189c3967c53a7ffb8401e5ece06fe72a1064fa240100000017160014909972af68f27edce34211b439aeb5e022b78d540000000002002556020000000017a91402bb085119f54006554e0586682aae51a83a3c3b87bf7fce000000000017a91429d4c3e5967f0b89e94b3462d958eeac1a8b7bb88702473044022020bab01cefb3875b291d65a8989abc41544d0a7ac2491a99d1c0b07b279893e302206f8c7c59cb17f790d29cd0ccc1710a91a3d6e5cb773aa1a36afdf313843413d1012102d4561e20188b47abd0bc4e80146799372d47a2ebb5ba73256bec768f56647cb500000000"
}


bitcoin-cli decoderawtransaction (rpc response) (new outbound tx raw)



{
"txid": "b28dfbfb945af2d589edb1f965b40fc748e88512f5ea2a1c8a6e3ad7d12bdae7",
"hash": "ca12826414b65f77667a9946d5ed52c36c3d0148bb0f25fa30edcc6e4ec1eb4f",
"version": 2,
"size": 247,
"vsize": 166,
"weight": 661,
"locktime": 0,
"vin": [
{
"txid": "24fa64102ae76fe0ece50184fb7f3ac567399c18f8124378a33100c7676c72bd",
"vout": 1,
"scriptSig": {
"asm": "0014909972af68f27edce34211b439aeb5e022b78d54",
"hex": "160014909972af68f27edce34211b439aeb5e022b78d54"
},
"txinwitness": [
"3044022020bab01cefb3875b291d65a8989abc41544d0a7ac2491a99d1c0b07b279893e302206f8c7c59cb17f790d29cd0ccc1710a91a3d6e5cb773aa1a36afdf313843413d101",
"02d4561e20188b47abd0bc4e80146799372d47a2ebb5ba73256bec768f56647cb5"
],
"sequence": 0
}
],
"vout": [
{
"value": 0.39200000,
"n": 0,
"scriptPubKey": {
"asm": "OP_HASH160 02bb085119f54006554e0586682aae51a83a3c3b OP_EQUAL",
"hex": "a91402bb085119f54006554e0586682aae51a83a3c3b87",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA"
]
}
},
{
"value": 0.13533119,
"n": 1,
"scriptPubKey": {
"asm": "OP_HASH160 29d4c3e5967f0b89e94b3462d958eeac1a8b7bb8 OP_EQUAL",
"hex": "a91429d4c3e5967f0b89e94b3462d958eeac1a8b7bb887",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"2Mw4QaLRrETNwaShCqUYnawFigkApqPZwi5"
]
}
}
]
}


UTXO being used for input in new outbound tx:



{
"amount": -0.39200000,
"fee": -0.00001782,
"confirmations": 6,
"blockhash": "76f32f569fbc844a75f47a2083cf1607864d2579259b86e1c898a08909d2c796",
"blockindex": 1,
"blocktime": 1542757159,
"txid": "24fa64102ae76fe0ece50184fb7f3ac567399c18f8124378a33100c7676c72bd",
"walletconflicts": [
],
"time": 1542756725,
"timereceived": 1542756725,
"bip125-replaceable": "no",
"details": [
{
"address": "2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA",
"category": "send",
"amount": -0.39200000,
"vout": 0,
"fee": -0.00001782,
"abandoned": false
},
{
"address": "2N35kVbwnFE9y8XayYBJ34yrdTgznHcDvUf",
"category": "send",
"amount": -0.52734339,
"label": "test1",
"vout": 1,
"fee": -0.00001782,
"abandoned": false
},
{
"address": "2N35kVbwnFE9y8XayYBJ34yrdTgznHcDvUf",
"category": "receive",
"amount": 0.52734339,
"label": "test1",
"vout": 1
}
],
"hex": "02000000000102be9766bac21ba65cbb147301d86048dc7dded96fcc76b07ca1b03ae9f18adec70100000017160014fcd0c9199e9a51cd426a85cf2f01b8ac935cc00400000000ad6dc9255fc5e467b0e03a44367f11acc5a54be499a66f3b8260885d6de4442800000000484730440220460ee0469e3683a42c83c95892f88e6cdb3369c2cd52f578f2ba95223df893a402202cde319da8cf2fab17b26f7cc90d2abbcb7dd0dbe7bec6221523de6daaf666c5010000000002002556020000000017a91402bb085119f54006554e0586682aae51a83a3c3b8783a924030000000017a9146be6901c71689311d32e0e832c13883d3716f17b87024730440220572ed3f959b78ef4ec2b9234a966a8eb089cec178de352b79fd15382de1efec4022033a053def44dca9253641163516933eb73fbb99614b15f61056a19cdc300721c0121025d28f4945d58cb465fccd85a839a34a1d88894214ba68842a39a62846b0de9f10000000000"
}


UTXO being used for input in the new outbound tx RAW:



{
"txid": "24fa64102ae76fe0ece50184fb7f3ac567399c18f8124378a33100c7676c72bd",
"hash": "9f2bfa337ebbf882256e8b5f6cf92bca18a7a3c371f12c4376e964d465dcd605",
"version": 2,
"size": 361,
"vsize": 279,
"weight": 1114,
"locktime": 0,
"vin": [
{
"txid": "c7de8af1e93ab0a17cb076cc6fd9de7ddc4860d8017314bb5ca61bc2ba6697be",
"vout": 1,
"scriptSig": {
"asm": "0014fcd0c9199e9a51cd426a85cf2f01b8ac935cc004",
"hex": "160014fcd0c9199e9a51cd426a85cf2f01b8ac935cc004"
},
"txinwitness": [
"30440220572ed3f959b78ef4ec2b9234a966a8eb089cec178de352b79fd15382de1efec4022033a053def44dca9253641163516933eb73fbb99614b15f61056a19cdc300721c01",
"025d28f4945d58cb465fccd85a839a34a1d88894214ba68842a39a62846b0de9f1"
],
"sequence": 0
},
{
"txid": "2844e46d5d8860823b6fa699e44ba5c5ac117f36443ae0b067e4c55f25c96dad",
"vout": 0,
"scriptSig": {
"asm": "30440220460ee0469e3683a42c83c95892f88e6cdb3369c2cd52f578f2ba95223df893a402202cde319da8cf2fab17b26f7cc90d2abbcb7dd0dbe7bec6221523de6daaf666c5[ALL]",
"hex": "4730440220460ee0469e3683a42c83c95892f88e6cdb3369c2cd52f578f2ba95223df893a402202cde319da8cf2fab17b26f7cc90d2abbcb7dd0dbe7bec6221523de6daaf666c501"
},
"sequence": 0
}
],
"vout": [
{
"value": 0.39200000,
"n": 0,
"scriptPubKey": {
"asm": "OP_HASH160 02bb085119f54006554e0586682aae51a83a3c3b OP_EQUAL",
"hex": "a91402bb085119f54006554e0586682aae51a83a3c3b87",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA"
]
}
},
{
"value": 0.52734339,
"n": 1,
"scriptPubKey": {
"asm": "OP_HASH160 6be6901c71689311d32e0e832c13883d3716f17b OP_EQUAL",
"hex": "a9146be6901c71689311d32e0e832c13883d3716f17b87",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"2N35kVbwnFE9y8XayYBJ34yrdTgznHcDvUf"
]
}
}
]
}


bumpfee b28dfbfb945af2d589edb1f965b40fc748e88512f5ea2a1c8a6e3ad7d12bdae7 response:
"(-4) Transaction does not have a change output"










share|improve this question






















  • This issue has been identified.. The issue seems to be with bitcoin core v 0.17.0.1 that if you generate a new raw change address via "getrawchangeaddress" and set a label for it. Then use that newly generated raw change address in a new raw transaction (replaceable) as one of the outputs it will throw this error "(-4) Transaction does not have a change output" when trying to perform a bumpfee. If you do not set a label on the newly generated raw change address, then the bumpfee happens correctly.
    – lixid
    Nov 21 at 3:12













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am trying to work with bumpfee for bitcoind regtest (bitcoincore v 0.17.0.1) and using createrawtransaction.
Everything works for creating the raw transaction and can make it replaceable to allow rbf, but when I perform a bumpfee with the txid I get this error.
ERROR: "(-4) Transaction does not have a change output"
I have tried multiple things to remedy this and cannot figure out why this is happening.
I hope someone can point me in the right direction and I hope this is enough info. Thanks in advance..



createrawtransaction rpc post:



{"method":"createrawtransaction","params":{"inputs":[{"txid":"24fa64102ae76fe0ece50184fb7f3ac567399c18f8124378a33100c7676c72bd","vout":1,"sequence":0}],"outputs":{"2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA":0.392,"2Mw4QaLRrETNwaShCqUYnawFigkApqPZwi5":0.13533119},"locktime":0,"replaceable":true},"id":1542757229520419420,"jsonrpc":"1.0"}



bitcoin-cli gettransaction (rpc response) (new outbound tx):



{
"amount": -0.39200000,
"fee": -0.00001220,
"confirmations": 0,
"trusted": true,
"txid": "b28dfbfb945af2d589edb1f965b40fc748e88512f5ea2a1c8a6e3ad7d12bdae7",
"walletconflicts": [
],
"time": 1542757229,
"timereceived": 1542757229,
"bip125-replaceable": "yes",
"details": [
{
"address": "2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA",
"category": "send",
"amount": -0.39200000,
"vout": 0,
"fee": -0.00001220,
"abandoned": false
},
{
"address": "2Mw4QaLRrETNwaShCqUYnawFigkApqPZwi5",
"category": "send",
"amount": -0.13533119,
"label": "test1",
"vout": 1,
"fee": -0.00001220,
"abandoned": false
},
{
"address": "2Mw4QaLRrETNwaShCqUYnawFigkApqPZwi5",
"category": "receive",
"amount": 0.13533119,
"label": "test1",
"vout": 1
}
],
"hex": "02000000000101bd726c67c70031a3784312f8189c3967c53a7ffb8401e5ece06fe72a1064fa240100000017160014909972af68f27edce34211b439aeb5e022b78d540000000002002556020000000017a91402bb085119f54006554e0586682aae51a83a3c3b87bf7fce000000000017a91429d4c3e5967f0b89e94b3462d958eeac1a8b7bb88702473044022020bab01cefb3875b291d65a8989abc41544d0a7ac2491a99d1c0b07b279893e302206f8c7c59cb17f790d29cd0ccc1710a91a3d6e5cb773aa1a36afdf313843413d1012102d4561e20188b47abd0bc4e80146799372d47a2ebb5ba73256bec768f56647cb500000000"
}


bitcoin-cli decoderawtransaction (rpc response) (new outbound tx raw)



{
"txid": "b28dfbfb945af2d589edb1f965b40fc748e88512f5ea2a1c8a6e3ad7d12bdae7",
"hash": "ca12826414b65f77667a9946d5ed52c36c3d0148bb0f25fa30edcc6e4ec1eb4f",
"version": 2,
"size": 247,
"vsize": 166,
"weight": 661,
"locktime": 0,
"vin": [
{
"txid": "24fa64102ae76fe0ece50184fb7f3ac567399c18f8124378a33100c7676c72bd",
"vout": 1,
"scriptSig": {
"asm": "0014909972af68f27edce34211b439aeb5e022b78d54",
"hex": "160014909972af68f27edce34211b439aeb5e022b78d54"
},
"txinwitness": [
"3044022020bab01cefb3875b291d65a8989abc41544d0a7ac2491a99d1c0b07b279893e302206f8c7c59cb17f790d29cd0ccc1710a91a3d6e5cb773aa1a36afdf313843413d101",
"02d4561e20188b47abd0bc4e80146799372d47a2ebb5ba73256bec768f56647cb5"
],
"sequence": 0
}
],
"vout": [
{
"value": 0.39200000,
"n": 0,
"scriptPubKey": {
"asm": "OP_HASH160 02bb085119f54006554e0586682aae51a83a3c3b OP_EQUAL",
"hex": "a91402bb085119f54006554e0586682aae51a83a3c3b87",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA"
]
}
},
{
"value": 0.13533119,
"n": 1,
"scriptPubKey": {
"asm": "OP_HASH160 29d4c3e5967f0b89e94b3462d958eeac1a8b7bb8 OP_EQUAL",
"hex": "a91429d4c3e5967f0b89e94b3462d958eeac1a8b7bb887",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"2Mw4QaLRrETNwaShCqUYnawFigkApqPZwi5"
]
}
}
]
}


UTXO being used for input in new outbound tx:



{
"amount": -0.39200000,
"fee": -0.00001782,
"confirmations": 6,
"blockhash": "76f32f569fbc844a75f47a2083cf1607864d2579259b86e1c898a08909d2c796",
"blockindex": 1,
"blocktime": 1542757159,
"txid": "24fa64102ae76fe0ece50184fb7f3ac567399c18f8124378a33100c7676c72bd",
"walletconflicts": [
],
"time": 1542756725,
"timereceived": 1542756725,
"bip125-replaceable": "no",
"details": [
{
"address": "2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA",
"category": "send",
"amount": -0.39200000,
"vout": 0,
"fee": -0.00001782,
"abandoned": false
},
{
"address": "2N35kVbwnFE9y8XayYBJ34yrdTgznHcDvUf",
"category": "send",
"amount": -0.52734339,
"label": "test1",
"vout": 1,
"fee": -0.00001782,
"abandoned": false
},
{
"address": "2N35kVbwnFE9y8XayYBJ34yrdTgznHcDvUf",
"category": "receive",
"amount": 0.52734339,
"label": "test1",
"vout": 1
}
],
"hex": "02000000000102be9766bac21ba65cbb147301d86048dc7dded96fcc76b07ca1b03ae9f18adec70100000017160014fcd0c9199e9a51cd426a85cf2f01b8ac935cc00400000000ad6dc9255fc5e467b0e03a44367f11acc5a54be499a66f3b8260885d6de4442800000000484730440220460ee0469e3683a42c83c95892f88e6cdb3369c2cd52f578f2ba95223df893a402202cde319da8cf2fab17b26f7cc90d2abbcb7dd0dbe7bec6221523de6daaf666c5010000000002002556020000000017a91402bb085119f54006554e0586682aae51a83a3c3b8783a924030000000017a9146be6901c71689311d32e0e832c13883d3716f17b87024730440220572ed3f959b78ef4ec2b9234a966a8eb089cec178de352b79fd15382de1efec4022033a053def44dca9253641163516933eb73fbb99614b15f61056a19cdc300721c0121025d28f4945d58cb465fccd85a839a34a1d88894214ba68842a39a62846b0de9f10000000000"
}


UTXO being used for input in the new outbound tx RAW:



{
"txid": "24fa64102ae76fe0ece50184fb7f3ac567399c18f8124378a33100c7676c72bd",
"hash": "9f2bfa337ebbf882256e8b5f6cf92bca18a7a3c371f12c4376e964d465dcd605",
"version": 2,
"size": 361,
"vsize": 279,
"weight": 1114,
"locktime": 0,
"vin": [
{
"txid": "c7de8af1e93ab0a17cb076cc6fd9de7ddc4860d8017314bb5ca61bc2ba6697be",
"vout": 1,
"scriptSig": {
"asm": "0014fcd0c9199e9a51cd426a85cf2f01b8ac935cc004",
"hex": "160014fcd0c9199e9a51cd426a85cf2f01b8ac935cc004"
},
"txinwitness": [
"30440220572ed3f959b78ef4ec2b9234a966a8eb089cec178de352b79fd15382de1efec4022033a053def44dca9253641163516933eb73fbb99614b15f61056a19cdc300721c01",
"025d28f4945d58cb465fccd85a839a34a1d88894214ba68842a39a62846b0de9f1"
],
"sequence": 0
},
{
"txid": "2844e46d5d8860823b6fa699e44ba5c5ac117f36443ae0b067e4c55f25c96dad",
"vout": 0,
"scriptSig": {
"asm": "30440220460ee0469e3683a42c83c95892f88e6cdb3369c2cd52f578f2ba95223df893a402202cde319da8cf2fab17b26f7cc90d2abbcb7dd0dbe7bec6221523de6daaf666c5[ALL]",
"hex": "4730440220460ee0469e3683a42c83c95892f88e6cdb3369c2cd52f578f2ba95223df893a402202cde319da8cf2fab17b26f7cc90d2abbcb7dd0dbe7bec6221523de6daaf666c501"
},
"sequence": 0
}
],
"vout": [
{
"value": 0.39200000,
"n": 0,
"scriptPubKey": {
"asm": "OP_HASH160 02bb085119f54006554e0586682aae51a83a3c3b OP_EQUAL",
"hex": "a91402bb085119f54006554e0586682aae51a83a3c3b87",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA"
]
}
},
{
"value": 0.52734339,
"n": 1,
"scriptPubKey": {
"asm": "OP_HASH160 6be6901c71689311d32e0e832c13883d3716f17b OP_EQUAL",
"hex": "a9146be6901c71689311d32e0e832c13883d3716f17b87",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"2N35kVbwnFE9y8XayYBJ34yrdTgznHcDvUf"
]
}
}
]
}


bumpfee b28dfbfb945af2d589edb1f965b40fc748e88512f5ea2a1c8a6e3ad7d12bdae7 response:
"(-4) Transaction does not have a change output"










share|improve this question













I am trying to work with bumpfee for bitcoind regtest (bitcoincore v 0.17.0.1) and using createrawtransaction.
Everything works for creating the raw transaction and can make it replaceable to allow rbf, but when I perform a bumpfee with the txid I get this error.
ERROR: "(-4) Transaction does not have a change output"
I have tried multiple things to remedy this and cannot figure out why this is happening.
I hope someone can point me in the right direction and I hope this is enough info. Thanks in advance..



createrawtransaction rpc post:



{"method":"createrawtransaction","params":{"inputs":[{"txid":"24fa64102ae76fe0ece50184fb7f3ac567399c18f8124378a33100c7676c72bd","vout":1,"sequence":0}],"outputs":{"2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA":0.392,"2Mw4QaLRrETNwaShCqUYnawFigkApqPZwi5":0.13533119},"locktime":0,"replaceable":true},"id":1542757229520419420,"jsonrpc":"1.0"}



bitcoin-cli gettransaction (rpc response) (new outbound tx):



{
"amount": -0.39200000,
"fee": -0.00001220,
"confirmations": 0,
"trusted": true,
"txid": "b28dfbfb945af2d589edb1f965b40fc748e88512f5ea2a1c8a6e3ad7d12bdae7",
"walletconflicts": [
],
"time": 1542757229,
"timereceived": 1542757229,
"bip125-replaceable": "yes",
"details": [
{
"address": "2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA",
"category": "send",
"amount": -0.39200000,
"vout": 0,
"fee": -0.00001220,
"abandoned": false
},
{
"address": "2Mw4QaLRrETNwaShCqUYnawFigkApqPZwi5",
"category": "send",
"amount": -0.13533119,
"label": "test1",
"vout": 1,
"fee": -0.00001220,
"abandoned": false
},
{
"address": "2Mw4QaLRrETNwaShCqUYnawFigkApqPZwi5",
"category": "receive",
"amount": 0.13533119,
"label": "test1",
"vout": 1
}
],
"hex": "02000000000101bd726c67c70031a3784312f8189c3967c53a7ffb8401e5ece06fe72a1064fa240100000017160014909972af68f27edce34211b439aeb5e022b78d540000000002002556020000000017a91402bb085119f54006554e0586682aae51a83a3c3b87bf7fce000000000017a91429d4c3e5967f0b89e94b3462d958eeac1a8b7bb88702473044022020bab01cefb3875b291d65a8989abc41544d0a7ac2491a99d1c0b07b279893e302206f8c7c59cb17f790d29cd0ccc1710a91a3d6e5cb773aa1a36afdf313843413d1012102d4561e20188b47abd0bc4e80146799372d47a2ebb5ba73256bec768f56647cb500000000"
}


bitcoin-cli decoderawtransaction (rpc response) (new outbound tx raw)



{
"txid": "b28dfbfb945af2d589edb1f965b40fc748e88512f5ea2a1c8a6e3ad7d12bdae7",
"hash": "ca12826414b65f77667a9946d5ed52c36c3d0148bb0f25fa30edcc6e4ec1eb4f",
"version": 2,
"size": 247,
"vsize": 166,
"weight": 661,
"locktime": 0,
"vin": [
{
"txid": "24fa64102ae76fe0ece50184fb7f3ac567399c18f8124378a33100c7676c72bd",
"vout": 1,
"scriptSig": {
"asm": "0014909972af68f27edce34211b439aeb5e022b78d54",
"hex": "160014909972af68f27edce34211b439aeb5e022b78d54"
},
"txinwitness": [
"3044022020bab01cefb3875b291d65a8989abc41544d0a7ac2491a99d1c0b07b279893e302206f8c7c59cb17f790d29cd0ccc1710a91a3d6e5cb773aa1a36afdf313843413d101",
"02d4561e20188b47abd0bc4e80146799372d47a2ebb5ba73256bec768f56647cb5"
],
"sequence": 0
}
],
"vout": [
{
"value": 0.39200000,
"n": 0,
"scriptPubKey": {
"asm": "OP_HASH160 02bb085119f54006554e0586682aae51a83a3c3b OP_EQUAL",
"hex": "a91402bb085119f54006554e0586682aae51a83a3c3b87",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA"
]
}
},
{
"value": 0.13533119,
"n": 1,
"scriptPubKey": {
"asm": "OP_HASH160 29d4c3e5967f0b89e94b3462d958eeac1a8b7bb8 OP_EQUAL",
"hex": "a91429d4c3e5967f0b89e94b3462d958eeac1a8b7bb887",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"2Mw4QaLRrETNwaShCqUYnawFigkApqPZwi5"
]
}
}
]
}


UTXO being used for input in new outbound tx:



{
"amount": -0.39200000,
"fee": -0.00001782,
"confirmations": 6,
"blockhash": "76f32f569fbc844a75f47a2083cf1607864d2579259b86e1c898a08909d2c796",
"blockindex": 1,
"blocktime": 1542757159,
"txid": "24fa64102ae76fe0ece50184fb7f3ac567399c18f8124378a33100c7676c72bd",
"walletconflicts": [
],
"time": 1542756725,
"timereceived": 1542756725,
"bip125-replaceable": "no",
"details": [
{
"address": "2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA",
"category": "send",
"amount": -0.39200000,
"vout": 0,
"fee": -0.00001782,
"abandoned": false
},
{
"address": "2N35kVbwnFE9y8XayYBJ34yrdTgznHcDvUf",
"category": "send",
"amount": -0.52734339,
"label": "test1",
"vout": 1,
"fee": -0.00001782,
"abandoned": false
},
{
"address": "2N35kVbwnFE9y8XayYBJ34yrdTgznHcDvUf",
"category": "receive",
"amount": 0.52734339,
"label": "test1",
"vout": 1
}
],
"hex": "02000000000102be9766bac21ba65cbb147301d86048dc7dded96fcc76b07ca1b03ae9f18adec70100000017160014fcd0c9199e9a51cd426a85cf2f01b8ac935cc00400000000ad6dc9255fc5e467b0e03a44367f11acc5a54be499a66f3b8260885d6de4442800000000484730440220460ee0469e3683a42c83c95892f88e6cdb3369c2cd52f578f2ba95223df893a402202cde319da8cf2fab17b26f7cc90d2abbcb7dd0dbe7bec6221523de6daaf666c5010000000002002556020000000017a91402bb085119f54006554e0586682aae51a83a3c3b8783a924030000000017a9146be6901c71689311d32e0e832c13883d3716f17b87024730440220572ed3f959b78ef4ec2b9234a966a8eb089cec178de352b79fd15382de1efec4022033a053def44dca9253641163516933eb73fbb99614b15f61056a19cdc300721c0121025d28f4945d58cb465fccd85a839a34a1d88894214ba68842a39a62846b0de9f10000000000"
}


UTXO being used for input in the new outbound tx RAW:



{
"txid": "24fa64102ae76fe0ece50184fb7f3ac567399c18f8124378a33100c7676c72bd",
"hash": "9f2bfa337ebbf882256e8b5f6cf92bca18a7a3c371f12c4376e964d465dcd605",
"version": 2,
"size": 361,
"vsize": 279,
"weight": 1114,
"locktime": 0,
"vin": [
{
"txid": "c7de8af1e93ab0a17cb076cc6fd9de7ddc4860d8017314bb5ca61bc2ba6697be",
"vout": 1,
"scriptSig": {
"asm": "0014fcd0c9199e9a51cd426a85cf2f01b8ac935cc004",
"hex": "160014fcd0c9199e9a51cd426a85cf2f01b8ac935cc004"
},
"txinwitness": [
"30440220572ed3f959b78ef4ec2b9234a966a8eb089cec178de352b79fd15382de1efec4022033a053def44dca9253641163516933eb73fbb99614b15f61056a19cdc300721c01",
"025d28f4945d58cb465fccd85a839a34a1d88894214ba68842a39a62846b0de9f1"
],
"sequence": 0
},
{
"txid": "2844e46d5d8860823b6fa699e44ba5c5ac117f36443ae0b067e4c55f25c96dad",
"vout": 0,
"scriptSig": {
"asm": "30440220460ee0469e3683a42c83c95892f88e6cdb3369c2cd52f578f2ba95223df893a402202cde319da8cf2fab17b26f7cc90d2abbcb7dd0dbe7bec6221523de6daaf666c5[ALL]",
"hex": "4730440220460ee0469e3683a42c83c95892f88e6cdb3369c2cd52f578f2ba95223df893a402202cde319da8cf2fab17b26f7cc90d2abbcb7dd0dbe7bec6221523de6daaf666c501"
},
"sequence": 0
}
],
"vout": [
{
"value": 0.39200000,
"n": 0,
"scriptPubKey": {
"asm": "OP_HASH160 02bb085119f54006554e0586682aae51a83a3c3b OP_EQUAL",
"hex": "a91402bb085119f54006554e0586682aae51a83a3c3b87",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"2MsVfPutTzGq4j1Q7ssfC1EoPfetHJek5WA"
]
}
},
{
"value": 0.52734339,
"n": 1,
"scriptPubKey": {
"asm": "OP_HASH160 6be6901c71689311d32e0e832c13883d3716f17b OP_EQUAL",
"hex": "a9146be6901c71689311d32e0e832c13883d3716f17b87",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"2N35kVbwnFE9y8XayYBJ34yrdTgznHcDvUf"
]
}
}
]
}


bumpfee b28dfbfb945af2d589edb1f965b40fc748e88512f5ea2a1c8a6e3ad7d12bdae7 response:
"(-4) Transaction does not have a change output"







rpc bitcoin bitcoind






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 21 at 0:03









lixid

615




615












  • This issue has been identified.. The issue seems to be with bitcoin core v 0.17.0.1 that if you generate a new raw change address via "getrawchangeaddress" and set a label for it. Then use that newly generated raw change address in a new raw transaction (replaceable) as one of the outputs it will throw this error "(-4) Transaction does not have a change output" when trying to perform a bumpfee. If you do not set a label on the newly generated raw change address, then the bumpfee happens correctly.
    – lixid
    Nov 21 at 3:12


















  • This issue has been identified.. The issue seems to be with bitcoin core v 0.17.0.1 that if you generate a new raw change address via "getrawchangeaddress" and set a label for it. Then use that newly generated raw change address in a new raw transaction (replaceable) as one of the outputs it will throw this error "(-4) Transaction does not have a change output" when trying to perform a bumpfee. If you do not set a label on the newly generated raw change address, then the bumpfee happens correctly.
    – lixid
    Nov 21 at 3:12
















This issue has been identified.. The issue seems to be with bitcoin core v 0.17.0.1 that if you generate a new raw change address via "getrawchangeaddress" and set a label for it. Then use that newly generated raw change address in a new raw transaction (replaceable) as one of the outputs it will throw this error "(-4) Transaction does not have a change output" when trying to perform a bumpfee. If you do not set a label on the newly generated raw change address, then the bumpfee happens correctly.
– lixid
Nov 21 at 3:12




This issue has been identified.. The issue seems to be with bitcoin core v 0.17.0.1 that if you generate a new raw change address via "getrawchangeaddress" and set a label for it. Then use that newly generated raw change address in a new raw transaction (replaceable) as one of the outputs it will throw this error "(-4) Transaction does not have a change output" when trying to perform a bumpfee. If you do not set a label on the newly generated raw change address, then the bumpfee happens correctly.
– lixid
Nov 21 at 3:12

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53403452%2fbitcoincore-0-17-0-1-rpc-bumpfee-error-4-transaction-does-not-have-a-change%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53403452%2fbitcoincore-0-17-0-1-rpc-bumpfee-error-4-transaction-does-not-have-a-change%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Berounka

Sphinx de Gizeh

Different font size/position of beamer's navigation symbols template's content depending on regular/plain...