bumpfee not returning hash of newly created transaction #16275

issue PavelNiedoba opened this issue on June 24, 2019
  1. PavelNiedoba commented at 9:29 AM on June 24, 2019: none

    I'm trying to implement replace by fee functionality with bictoind (v18) and bumpfee rpc call described here

    It works by mean that new transaction is created with higher fee, but result should be:

    {
      "txid":    "value",   (string)  The id of the new transaction
      "origfee":  n,         (numeric) Fee of the replaced transaction
      "fee":      n,         (numeric) Fee of the new transaction
      "errors":  [ str... ] (json array of strings) Errors encountered during processing (may be empty)
    }
    

    but I'm getting basically all null response

    {
      "id": "BumpFeeRequest 1561247020661",
      "error": null,
      "txid": null,
      "origfee": null,
      "fee": null,
      "errors": null
    }
    

    Which makes it hard to identify the new transaction in down-steam system.

    I believe that hash of newly created tx should be returned

    I posted this also here: https://bitcoin.stackexchange.com/questions/88560/bitcoind-jsonrpc-bumpfee-not-returning-hash-of-newly-created-transaction

  2. fanquake added the label RPC/REST/ZMQ on Jun 24, 2019
  3. MarcoFalke commented at 1:27 PM on June 24, 2019: member

    Without steps to reproduce (and the exact versions of the software you are using), we can't help much here.

  4. MarcoFalke added the label Questions and Help on Jun 24, 2019
  5. promag commented at 2:32 PM on June 24, 2019: member

    @PavelNiedoba what are you using on the client side?

  6. PavelNiedoba commented at 10:23 AM on June 25, 2019: none

    Furnishing requested info: wallet version 2019-06-22T22:13:57Z Bitcoin Core version v0.18.0 (release build) (latest to-day)

    as client I'm using java HttpClient from Rescu library. I also tested it using curl.

    below is json POST requests and responses, skipping authentications, because its obviously working fine

    first there is set fee call:

    request:{"jsonrpc":"1.0","id":"SetFeeRequest 1561457471653","method":"settxfee","params":[0.000720]}
    response:{"id":"SetFeeRequest 1561457471653","error":null,"result":true}
    

    send many:

    request:{"jsonrpc":"1.0","id":"SendRequest 1561457471707","method":"sendmany","params":["",{"tb1q6wedjc0st5c9nh8upd89gelv9tf5f9mttc2grh":0.01},1,"",null,true]}
    response:{"id":"SendRequest 1561457471707","error":null,"result":"36a747bcffd1c4a4e24c0b5a767297358f21554ed7a24b9efdf1b97aba66a45b"}
    

    get transaction by hash:

    request:{"jsonrpc":"1.0","id":"GetTransactionRequest 1561457471856","method":"gettransaction","params":["36a747bcffd1c4a4e24c0b5a767297358f21554ed7a24b9efdf1b97aba66a45b",false]}
    response:{"id":"GetTransactionRequest 1561457471856","error":null,"result":{"amount":-0.01000000,"confirmations":0,"blockhash":null,"blockindex":null,"blocktime":null,"txid":"36a747bcffd1c4a4e24c0b5a767297358f21554ed7a24b9efdf1b97aba66a45b","time":1561457470,"comment":null,"details":[{"account":null,"address":"tb1q6wedjc0st5c9nh8upd89gelv9tf5f9mttc2grh","category":"send","amount":-0.01000000,"label":null,"vout":0,"fee":-0.00054216,"abandoned":false}],"bip125-replaceable":"yes"}}
    

    bump fee:

    request:{"jsonrpc":"1.0","id":"BumpFeeRequest 1561457473892","method":"bumpfee","params":["36a747bcffd1c4a4e24c0b5a767297358f21554ed7a24b9efdf1b97aba66a45b"]}
    response:{"id":"BumpFeeRequest 1561457473892","error":null,"txid":null,"origfee":null,"fee":null,"errors":null}
    

    by now there is replaced tx in blockchain https://chain.so/tx/BTCTEST/4407c5f9f1f56d7d8c06a46526891dfa1adcbc2f0863a1e2ea4318c4b648b884

    original tx 36a747bcffd1c4a4e24c0b5a767297358f21554ed7a24b9efdf1b97aba66a45b is not to be found in testnet blockchain, to the function works, except not returning the txid

    I expect to have txid populated:4407c5f9f1f56d7d8c06a46526891dfa1adcbc2f0863a1e2ea4318c4b648b884

  7. MarcoFalke commented at 2:41 PM on June 25, 2019: member

    as client I'm using java HttpClient from Rescu library. I also tested it using curl.

    Could you include the command line and response when doing the bumpfee call with curl?

    It looks like this is an upstream bug with the java library.

  8. PavelNiedoba commented at 3:55 PM on June 25, 2019: none

    You are right, my bad, sorry for wasting your time

  9. PavelNiedoba closed this on Jun 25, 2019

  10. promag commented at 4:09 PM on June 25, 2019: member

    @paveljanik no problem, always try with bitcoin-cli to discard problems in third party clients.

  11. DrahtBot locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me