3
1
My bitcoind (v0.13.0) mempool size is currently 12k transactions as can be seen from:
tail -f ~/.bitcoin/debug.log
I find this number very surprising as I naively expected it to keep in line with the number of 'Unmatched transaction' as reported say by blockchain.info which currently shows 3k transactions.
https://blockchain.info/unconfirmed-transactions
What am I missing?
How long has your code been running? It usually takes hours to days before the mempool fills us that much. – Pieter Wuille – 2016-08-25T15:35:45.407
It has been running for 10 hours now today. Showing poolsz = 12k and 157MB. – Sven Williamson – 2016-08-25T15:39:06.983
2Oh, sorry. I thought that your mempool was 12 kB in size. Since Bitcoin Core 0.12, the mempool is really designed to be always at its maximum size. You can check the memory usage with the
getmempoolinfoRPC command. – Pieter Wuille – 2016-08-25T15:48:35.810what's the difference between "bytes" and "usage" ? "bytes" only showing 85MB with usage 160MB. Please ignore
bitcoin-cli getmempoolinfo helpgot it :) Thanks v much ! – Sven Williamson – 2016-08-25T16:24:54.6471The sum of the 'size' of transactions is 85 MB (size on the wire), but in memory they consume 160 MB of RAM (due to indexes, allocation overhead, metadata, ...). – Pieter Wuille – 2016-08-25T17:11:45.173
By default, that 160 will grow to 300. – Pieter Wuille – 2016-08-25T18:02:33.237
217MB now :) By the way I used to find it very entertaining to watch the mempool log scrolling down with each new accepted transaction and the
"subver"field of my connected peers (which I can still get fromgetpeerinfo). This feature disappeared 2 or 3 upgrades ago. Is there a setting which allows me to have it back? – Sven Williamson – 2016-08-25T18:50:18.733