Should I increase my mempool size to accomodate temporary crisis?

3

1

I am seeing 68k unconfirmed transactions on blockchain.info. My own bitcoind (v0.13.0) node has 49k transactions in its mempool with memory usage currently at 230mb. Knowing that the memory cap is currently at 300mb, I fear that very soon my node will not be able to keep all unconfirmed transactions. Should I increase this cap as a temporary measure until things get better? if so, how do I do that?

Sven Williamson

Posted 2016-10-26T23:10:53.190

Reputation: 1 314

Answers

3

You can increase the mempool size, if you have an interest in seeing transactions that likely won't confirm for a very long time, but you certainly don't have to. The mempool is sorted by feerate, and when the limiter kicks in, it removes the lowest feerate transactions. Since miners sort by feerate, and can include only a limited number of transactions per block, the mempool effectively works as a queue.

By design, you will not always be able to store all unconfirmed transactions. If your goal would be to have all, and crank up your memory pool to accomodate this, someone could just start creating an infinite stream of transactions sending back and forth, until your node goes out of memory. This is the reason why the mempool size is limited in the first place: protection against a denial of service on the network.

Pieter Wuille

Posted 2016-10-26T23:10:53.190

Reputation: 54 032

1

You can change the maxmempool setting to achieve this.

https://gist.github.com/laanwj/efe29c7661ce9b6620a7

dark knight

Posted 2016-10-26T23:10:53.190

Reputation: 1 532

Please include the relevant information in your post, link only answers are considered low-quality and may be removed. If you found the information on another page, adding a link to the source is appreciated of course.Murch 2016-10-27T15:50:38.460