Author

Topic: Can a node import mempool RPC if IBD was not completed? (Read 113 times)

legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
It has been requested, as you can see in this Bitcoin Core PR review, but it does a different thing; it loads transactions into your node's mempool given a mempool.dat.
Thanks, I see that it's just merged 3 weeks ago which will be included in the next release.
I'm surprised that OP is using the dev build.
legendary
Activity: 1344
Merit: 6415
Farewell, Leo
Normally, your node won't download any unconfirmed transactions until reaching the chain tip, as it can't verify the validity of those transactions. If you want to know the current mempool of a random node, then just trust a block explorer?

I'm not aware of any "importmempool" command in Bitcoin Core, perhaps you're looking at some other Bitcoin node implementation?
It has been requested, as you can see in this Bitcoin Core PR review, but it does a different thing; it loads transactions into your node's mempool given a mempool.dat.
legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
-snip-
but I'm wondering whether there's a method to use the importmempool RPC (remote procedure call), which acts as an interface with a blockchain.
I'm not aware of any "importmempool" command in Bitcoin Core, perhaps you're looking at some other Bitcoin node implementation?

If so, please specify;
While you're at it, please provide more information about your "experiment" so that users can give you more fitting answers.
legendary
Activity: 3458
Merit: 6231
Crypto Swap Exchange
I read more about mempool during my recent investigation, however I ultimately opted to conduct an experiment using the mainnet mempool. Unfortunately, the node must complete IBD (initial block download) up to the most recent chaintip before it can fill your mempool. But my main concern right now is whether or not my experiment will succeed. If so, how can I obtain some answers? I know it will be very difficult based on my prior experience, but I'm wondering whether there's a method to use the importmempool RPC (remote procedure call), which acts as an interface with a blockchain.

If it's just for experiment sake, use Testnet or Signet instead. I just checked my node and found out testnet blockchain has size ~30.9GB, while Signet blockchain has size ~830MB. If it's still too much, i guess you should write script which connect to someone's else full node and ask for transaction on it's mempool.

Never checked, but don't some of the block explorers have API calls for this?

The issue is going to be with the mempool being well over 900MB that a lot of places / nodes are going to be dropping different transactions depending on their settings. I they have the default 300MB you may get a different answer then if they have it set to 512MB and that may be different then 1024MB.

So unless you know what they are doing querying one will only get what they have in theirs.

-Dave
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
I'm wondering whether there's a method to use the importmempool RPC (remote procedure call), which acts as an interface with a blockchain.
What are you trying to accomplish? You can't verify anything in an imported mempool without an up-to-date blockchain. I think you're going to have to wait for Bitcoin Core to complete syncing.
newbie
Activity: 14
Merit: 4
I read more about mempool during my recent investigation, however I ultimately opted to conduct an experiment using the mainnet mempool. Unfortunately, the node must complete IBD (initial block download) up to the most recent chaintip before it can fill your mempool. But my main concern right now is whether or not my experiment will succeed. If so, how can I obtain some answers? I know it will be very difficult based on my prior experience, but I'm wondering whether there's a method to use the importmempool RPC (remote procedure call), which acts as an interface with a blockchain.
Jump to: