<p>No, there is no way to do that.</p>

<p>However you could make your mempool smaller and that would have a similar effect. The mempool has its own <code>minmempoolfee</code>. The in-practice <code>minrelayfee</code> is the maximum of the <code>-minrelaytxfee</code> and the <code>minmempoolfee</code>. The <code>minmempoolfee</code> will change when the mempool becomes full, and decreases when it has space. So if you set your <code>-maxmempool</code> to be much smaller, you would get a similar effect to changing <code>-minrelaytxfee</code> dynamically.</p>

CC BY-SA 3.0
2017-08-14T22:31:53.973Z
Thanks Andrew, this is interesting to learn. Do you know of any documentation on how -maxmempool adjusts the minmempoolfee?
inersha
CC BY-SA 3.0
2017-08-14T23:18:35.777Z
@inersha When transactions are evicted from the mempool due to being at the bottom of a too-large mempool when sorted by feerate, the effective minrelayfee is raised to be the feerate of the evicted transactions.
Pieter Wuille
CC BY-SA 3.0
2017-08-14T23:22:09.740Z
@PieterWuille Excellent, thanks Pieter. What causes minmempoolfee to return back to a lower value (i.e. back to -minrelaytxfee)? Is it when a transaction is received that does not have to evict another one?
inersha
CC BY-SA 3.0
2017-08-14T23:43:38.267Z
It continuously goes down, very slowly, halving every 3 to 12 hours, until it has to be bumped again due to an eviction.
Pieter Wuille
CC BY-SA 3.0
2017-08-14T20:44:45.227Z
2017-08-14T20:44:45.227Z
Ava Chow
<p>When I start bitcoind, I like to set a <code>-minrelaytxfee</code> to save bandwidth on transactions that will likely never make it in to the blockchain (because their fees are too low).</p>

<p>However, when the network is under low load, I would be happy to reduce the <code>-minrelaytxfee</code> so that my node receives more of the transactions on the network.</p>

<p><strong>Is there any way I can dynamically change the minrelaytxfee whilst my node is running?</strong></p>

<bitcoind><transaction-fees><mempool>
Is it possible to set a dynamic -minrelaytxfee?
inersha
# Is it possible to set a dynamic -minrelaytxfee?

(Asked by: username_0 on 2017-08-14)

When I start bitcoind, I like to set a `-minrelaytxfee` to save bandwidth on transactions that will likely never make it in to the blockchain (because their fees are too low).

However, when the network is under low load, I would be happy to reduce the `-minrelaytxfee` so that my node receives more of the transactions on the network.

**Is there any way I can dynamically change the minrelaytxfee whilst my node is running?**

**Tags:** bitcoind, transaction-fees, mempool


---

## 1 answers

### Answer by username_1 on 2017-08-14. Score: 4 | Accepted answer

No, there is no way to do that.

However you could make your mempool smaller and that would have a similar effect. The mempool has its own `minmempoolfee`. The in-practice `minrelayfee` is the maximum of the `-minrelaytxfee` and the `minmempoolfee`. The `minmempoolfee` will change when the mempool becomes full, and decreases when it has space. So if you set your `-maxmempool` to be much smaller, you would get a similar effect to changing `-minrelaytxfee` dynamically.

> **Comments:**
> **username_0**: Thanks Andrew, this is interesting to learn. Do you know of any documentation on how -maxmempool adjusts the minmempoolfee?  
> **username_2**: @username_0 When transactions are evicted from the mempool due to being at the bottom of a too-large mempool when sorted by feerate, the effective minrelayfee is raised to be the feerate of the evicted transactions.  
> **username_0**: @PieterWuille Excellent, thanks Pieter. What causes minmempoolfee to return back to a lower value (i.e. back to -minrelaytxfee)? Is it when a transaction is received that does not have to evict another one?  
> **username_2**: It continuously goes down, very slowly, halving every 3 to 12 hours, until it has to be bumped again due to an eviction.  

---

