Transfer mempool transactions from an online node to an offline node

4 replies 260 views
paul.stakeHero Member
Posts: 651 · Reputation: 3798
#1Mar 22, 2023, 03:18 PM
So I'm doing this little experiment. What's the easiest way to get an online node's mempool over to an offline node? Is there any built-in feature in Bitcoin Core that lets you export and import the mempool without hassle? Or am I stuck going through each transaction in the mempool from the online node, saving them, and then importing them one by one on the offline node?
7 Reply Quote Share
hash_bossLegendary
Posts: 1166 · Reputation: 5261
#2Mar 22, 2023, 06:21 PM
You may want to see these RPC call, https://bitcoincore.org/en/doc/28.0.0/rpc/blockchain/savemempool/ https://bitcoincore.org/en/doc/28.0.0/rpc/blockchain/importmempool/
4 Reply Quote Share
paul.stakeHero Member
Posts: 651 · Reputation: 3798
#3Mar 22, 2023, 07:18 PM
Exactly what I was looking for!
0 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#4Mar 23, 2023, 12:06 AM
How do you plan to use this on an offline node? I assume it's meant to create a new transaction: how do you do that?
0 Reply Quote Share
paul.stakeHero Member
Posts: 651 · Reputation: 3798
#5Mar 23, 2023, 05:06 AM
It is not meant to create a new transaction, but to mine current ones.
0 Reply Quote Share

Related topics