[RPC] Adding ::minRelayTxFee amount to getmempoolinfo and updating help #12001

pull jeffrade wants to merge 1 commits into bitcoin:master from jeffrade:update_mempoolminfee_help_details changing 3 files +13 −6
  1. jeffrade commented at 12:55 AM on December 24, 2017: contributor

    These are RPC document changes from #11475 which is now merged. Took into consideration comments from #11475 and #6941 for this PR.

    Biggest change here is when calling getmempoolinfo, will now show the minrelaytxfee in the JSON reponse (see below):

    $ bitcoin-cli getmempoolinfo
    {
      "size": 50,
      "bytes": 13102,
      "usage": 70480,
      "maxmempool": 300000000,
      "mempoolminfee": 0.00001000,
      "minrelaytxfee": 0.00001000
    }
    

    Fixes #8953

  2. fanquake added the label RPC/REST/ZMQ on Dec 24, 2017
  3. jeffrade force-pushed on Dec 24, 2017
  4. jeffrade force-pushed on Dec 24, 2017
  5. jeffrade commented at 1:59 AM on December 27, 2017: contributor

    @laanwj Here is the PR from conversation we had in #11475 I would like a review on to make sure my understanding was correct. Adds minRelayTxFee to the JSON response of getmempoolinfo and updates help description of updated mempoolminfee. Thank you!

  6. mess110 commented at 10:13 AM on December 27, 2017: contributor

    Thanks for the patch

    I think the key from the Pair should be lower case https://github.com/bitcoin/bitcoin/pull/12001/files#diff-a0c8f511d90e83aa9b5857e819ced344R1361 (test also needs update in this case).

  7. jeffrade force-pushed on Dec 27, 2017
  8. jeffrade commented at 3:49 PM on December 27, 2017: contributor

    @mess110 Made suggested lowercase updates and amended my original commit.

    Thanks for the review!

  9. mess110 commented at 4:44 PM on December 27, 2017: contributor

    utACK ed0b22d

  10. fanquake deleted a comment on Dec 28, 2017
  11. in test/functional/wallet.py:37 in ed0b22dbb9 outdated
      35 | @@ -36,6 +36,9 @@ def run_test(self):
      36 |          self.log.info("Check for mempoolminfee in getmempoolinfo")
      37 |          assert_equal(self.nodes[0].getmempoolinfo()['mempoolminfee'], Decimal('0.00001000'))
    


    MarcoFalke commented at 11:09 AM on December 29, 2017:

    Wallet is the wrong place to put mempool tests. Please move this one and your addition to mempool_limit.py

    See following diff for a sketch:

    diff --git a/test/functional/mempool_limit.py b/test/functional/mempool_limit.py
    index e24dc5a464..d8cc9922fd 100755
    --- a/test/functional/mempool_limit.py
    +++ b/test/functional/mempool_limit.py
    @@ -17,10 +17,14 @@ class MempoolLimitTest(BitcoinTestFramework):
             txouts = gen_return_txouts()
             relayfee = self.nodes[0].getnetworkinfo()['relayfee']
     
    +        self.log.info('Check that mempoolminfee is minrelytxfee')
    +        assert_equal(self.nodes[0].getmempoolinfo()['minrelaytxfee'], Decimal('0.00001000'))
    +        assert_equal(self.nodes[0].getmempoolinfo()['mempoolminfee'], Decimal('0.00001000'))
    +
             txids = []
             utxos = create_confirmed_utxos(relayfee, self.nodes[0], 91)
     
    -        #create a mempool tx that will be evicted
    +        self.log.info('Create a mempool tx that will be evicted')
             us0 = utxos.pop()
             inputs = [{ "txid" : us0["txid"], "vout" : us0["vout"]}]
             outputs = {self.nodes[0].getnewaddress() : 0.0001}
    @@ -37,10 +41,14 @@ class MempoolLimitTest(BitcoinTestFramework):
                 txids.append([])
                 txids[i] = create_lots_of_big_transactions(self.nodes[0], txouts, utxos[30*i:30*i+30], 30, (i+1)*base_fee)
     
    -        # by now, the tx should be evicted, check confirmation state
    +        self.log.info('The tx should be evicted by now')
             assert(txid not in self.nodes[0].getrawmempool())
             txdata = self.nodes[0].gettransaction(txid)
             assert(txdata['confirmations'] ==  0) #confirmation should still be 0
     
    +        self.log.info('Check that mempoolminfee is larger than minrelytxfee')
    +        assert_equal(self.nodes[0].getmempoolinfo()['minrelaytxfee'], Decimal('0.00001000'))
    +        assert_greater_than(self.nodes[0].getmempoolinfo()['mempoolminfee'], Decimal('0.00001000'))
    +
     if __name__ == '__main__':
         MempoolLimitTest().main()
    
  12. MarcoFalke commented at 11:10 AM on December 29, 2017: member

    Tested ACK, but needs tests reworked a bit.

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA512
    
    Tested ACK ed0b22dbb96f6ef66436c8006c4e1581367d9f5d
    -----BEGIN PGP SIGNATURE-----
    
    iQIcBAEBCgAGBQJaRiJwAAoJENLqSFDnUoslslgQAJ2SrA0AT+ASJImbccZCKd0O
    q0DT0JqRAYyxaCzGg4Ot9tqk9FTvZkNWeo6c+MeLk4Zto/Sw0i0hCnsmA7ZDm+ip
    a3ASw/zK1SVbKVMNbJzHgbdOUGaDuH9ZBdWes4gUkdPEgzSu9xiFf78QcZp1atM+
    FKjVP11xWI7BcjU+AnQaTeEfT3AbkHeknncWwF1jyOki7mQP3XeBlHMrXh7I9NiL
    7UU0y9u9OGh4uffEcU1Gv+2TwdJ1mJJZ2krUm1o1x/HGgLAmtWc5f96RO9wJCE0y
    lD0fNbN7u8ic7VNa0W4dfBlO3SaRF4FeZc0WCwB6b+g2Ib78YCwldIArgSQsvpOW
    eALCOMTsa3j9fs5G/ovXVvInKVmbDRqBY6xaePgPpM3iYMvGK6Zwuu1drASURIGs
    jB/Zbxrh9YyP4K/9msY2w8cbsltovhFUlHU+N7C0oP5D+okgdvl+Eq+mqszrxnNR
    IJv5XnSzfLVvugXfwddk5igV9tNEWohZ0YGc+BQbZzMeMZQ1CnjUypvqnopQj/lA
    13odjFvDpGR9UwQiWgNrFTuKoVtAdE3Dv9t2YRhQh/o7+btF69QmnjSVs4j4AMxM
    dePQ7Svtge1X0ToUsaWkx7cHMSRKQ4F8ri82dqsgmgYjlvGdli3BXh/cPzY4qEDp
    C4h0RybwVcfBawoiq+2B
    =2Q+/
    -----END PGP SIGNATURE-----
    
  13. [rpc] Adding ::minRelayTxFee amount to getmempoolinfo and updating mempoolminfee help description aad309065d
  14. jeffrade force-pushed on Dec 29, 2017
  15. jeffrade commented at 3:03 PM on December 29, 2017: contributor

    @MarcoFalke Made update and amended my commit (thought two commits would probably need to be squashed). Thank you for review and mempool_limit.py diff.

  16. MarcoFalke commented at 5:09 AM on December 30, 2017: member

    Thanks for the fixup.

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA512
    
    utACK aad309065d38613a7e98aba39d947ca215b7c2f7
    -----BEGIN PGP SIGNATURE-----
    
    iQIcBAEBCgAGBQJaRx9ZAAoJENLqSFDnUosl/aIP/jY1uFzusJymOFwt15LfaeUL
    mPkAHabA7PR++B3jZ+lOvDQARofJFR0HFU3JVS32iBSS2kgAs/VYU7sVGAd8leSw
    QKKnvDh6AjRI6HfvYR1N1rEnnbFJ6XnvyNVIis+6hBK/mIvEUIx/bnZzzJmknXIx
    82IGgI2hHbL42d5EmwvQr9Ydy/PCSn0GBkYOFr4mEvX/wxxDxjXgLGI1xaGJcYCE
    7m9uaJhvCKcdDIao6G+TclxUlatB+Zp5PsQl+33slNaf0kW/opsWO4wvAbhz1zZD
    8WT6gGk5h4ru89Unf0PC4FiZkc27WwOjIxFxMAurGefQhZfQN9/4Iy6+crk4axUn
    nIlBSo2nPpULN2GPIhAI+TFL/PHa7m1H7OzLkwsyBDcGgWl79WQnjDLQp2ceOBFS
    lLH9NXuR1c0bIC0F/Crjrga7tmMq71rqTjigbbULXmiuKVTGrRE/7u5KSAUvHCT5
    QW4pjY+Q3RD7pUIHH2+IiSbJrD1YHqjdR9CZ8Yqds7uBxmOSwGZlstJIeKYZKE7B
    7WiHi/dI69ItLQT4LOSzs7EkQSp7gutNU/eQw9czQ7p4t8E/3k+4nJqIG5ZopPjt
    FZy4ccAZhsQGYyu2yd08i2RMC3nspK40HIxs/pjgu8vH9dIIipHO9VHa7Z2LoQmE
    oWQE5gt32/w+VsFSZxij
    =RgYE
    -----END PGP SIGNATURE-----
    
  17. jeffrade commented at 2:52 PM on December 30, 2017: contributor

    No problem - happy to contribute!

  18. jonasschnelli commented at 7:39 AM on January 4, 2018: contributor

    utACK aad309065d38613a7e98aba39d947ca215b7c2f7

  19. laanwj merged this on Jan 4, 2018
  20. laanwj closed this on Jan 4, 2018

  21. laanwj referenced this in commit a9a49e6e7e on Jan 4, 2018
  22. laanwj commented at 8:38 AM on January 4, 2018: member

    @laanwj Here is the PR from conversation we had in #11475 I would like a review on to make sure my understanding was correct

    Thanks! utACK aad309065d38613a7e98aba39d947ca215b7c2f7

  23. PastaPastaPasta referenced this in commit a0abbd47a4 on Feb 13, 2020
  24. PastaPastaPasta referenced this in commit a2c8d92ee2 on Feb 27, 2020
  25. PastaPastaPasta referenced this in commit 4e6cd82529 on Feb 27, 2020
  26. PastaPastaPasta referenced this in commit 67cf9591c4 on Feb 27, 2020
  27. ckti referenced this in commit 41fa99cb01 on Mar 28, 2021
  28. DrahtBot locked this on Sep 8, 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:15 UTC

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