2

I just started my 'occasional' full-node and I am watching the size of the mempool grow after full block synchronization - watch -n 3 'bitcoin-cli getrawmempool true |jq "length"' - it has around 4000 pending transactions. My 'continuous' full-node, however, has around 18000 pending transactions which seem to never become available to my 'ocasional' node.

Looks like that when a node starts up it will receive the new transactions that arrive at the mempool, but the old transactions that had been laying there are never 'synchronized'. How can I synchronize the mempool of a recently launched node with the one of its peers?

I could shut down my other full-node and copy past mempool.dat into my other node but this solution is very ugly as I need to shut down a long-running node with many connections.

7
  • Why do you think it matters?
    – Claris
    Feb 10, 2020 at 19:05
  • off the top of my head: fee recommendations with custom code, setting up your electrum server and proving up-to-date intormation, fee bumping transactions made on your mobile wallet through bitcoin core,...
    – Pedro
    Feb 10, 2020 at 19:26
  • Fee estimation wouldn’t work if you stuffed the men pool suddenly with old transaction. Electrum servers won’t be started and stopped frequently.
    – Claris
    Feb 10, 2020 at 19:30
  • Fee estimations made by looking at the current size of the mempool would work with old transactions (not bitcoin core recommendations, that's why I wrote 'custom code'). For example you could recommend a fee that is at the top 0.8 vMB of the mempool.
    – Pedro
    Feb 10, 2020 at 19:33
  • If you're writing custom code you can surely just not have an "occasional" node.
    – Claris
    Feb 10, 2020 at 22:06

1 Answer 1

1

mempoolcp command line utility is what you are looking for:

https://github.com/dev7ba/mempoolcp

1
  • 1
    Cheers, I'm surprised someone tackled this 3 years after! Ideally a tool like this would be integrated into bitcoin core, but we all know it's hard to get code merged there.
    – Pedro
    Feb 14, 2023 at 9:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.