Skip to content

Commit de0c61a

Browse files
f321xSomberNight
authored andcommitted
fix: incorrect blockchain.relayfee description
The description of `blockchain.relayfee` promises the user that transactions paying the relayfee will get accepted into the servers mempool. This however seems incorrect as the relayfee is just a fixed value in the core backend (either configured or a hardcoded default value) and doesn't change with a growing mempool. See definition: https://github.com/laanwj/bitcoin/blob/d387b8ec15e553db9b9c370314ee359e981fb374/src/main.cpp#L55-L56 and usage for the API: https://github.com/laanwj/bitcoin/blob/d387b8ec15e553db9b9c370314ee359e981fb374/src/rpcmisc.cpp#L86-L87 To get the minimal feerate to be paid for mempool acceptance one has to use getmempoolinfo['mempoolminfee'].
1 parent fc6de12 commit de0c61a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

docs/protocol-methods.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,9 @@ Subscribe to receive block headers when a new block is found.
237237
blockchain.relayfee
238238
===================
239239

240-
Return the minimum fee a low-priority transaction must pay in order to
241-
be accepted to the daemon's memory pool.
240+
Feerates lower than this are considered zero fee and are not being
241+
relayed to the bitcoin network by the server.
242+
This feerate does not guarantee acceptance into the mempool of the server.
242243

243244
**Signature**
244245

0 commit comments

Comments
 (0)