Can You Use Mempool RPC Without Completing IBD?

5 replies 139 views
0xNodeMember
Posts: 307 · Reputation: 80
#1Jun 9, 2021, 06:11 PM
I was digging into mempool stuff lately and decided to try out the mainnet. But I've hit a wall. My node needs to finish the initial block download first to fill the mempool. I'm kinda worried if my experiment will actually work. Is there a way to use the importmempool RPC to make this happen?
5 Reply Quote Share
orbit1337Senior Member
Posts: 161 · Reputation: 941
#2Jun 9, 2021, 10:21 PM
What's your end goal here? I don't think you can confirm anything from an imported mempool if your blockchain isn't up to date. Looks like you might be stuck waiting for Bitcoin Core to finish syncing.
3 Reply Quote Share
wallet_vaultFull Member
Posts: 133 · Reputation: 431
#3Jun 10, 2021, 04:30 AM
Not sure, but don’t some block explorers have APIs for this type of thing? It could save you some hassle.
4 Reply Quote Share
0xChadNewbie
Posts: 186 · Reputation: 3
#4Jun 12, 2021, 04:59 AM
Yeah, but the mempool size is a mess. It’s over 900MB in many places. Different nodes have different settings. If one has a 300MB limit and another has 1024MB, you're gonna get different results. So unless you know what you're querying, it’s a gamble.
4 Reply Quote Share
dave.forkMember
Posts: 165 · Reputation: 185
#5Jun 12, 2021, 09:49 AM
I haven't seen an 'importmempool' command in Bitcoin Core. Are you sure you’re not looking at some other node? Can you clarify that? Also, what's this 'experiment' you're running? Would help the community give better advice.
3 Reply Quote Share
0xChadNewbie
Posts: 186 · Reputation: 3
#6Jun 12, 2021, 11:01 AM
Oh, I just saw that it got merged a few weeks back and will be in the next release. Surprised OP is using a dev build.
3 Reply Quote Share

Related topics