I heard on a space today that the best way to get a PR merged in core is to campaign for it, so this is me starting a campaign for a listmempooltransactions RPC

my rationale for this is that it’ll let you more easily scan the mempool for new transactions that have arrived (since the last time you scanned it)

this is a massive improvement imo for usability of mempool data for apps that want to know about newly arrived txs to their node

there currently is no RPC for quickly fetching out new outputs created in the mempool or inputs spent.

to do this currently you’d have to call getrawmempool, which returns a list of all txids currently in the mempool and then call getrawtransaction on every returned entry. this is painful and unnecessary

I also implemented a feature into a branch CLN using it that would let you scan for interesting unconfirmed txs, to demonstrate its immediate usefulness. more details in the open PR!

https://github.com/bitcoin/bitcoin/pull/29016

Reply to this note

Please Login to reply.

Discussion

the biggest innovation here is letting a caller filter for new txs since a given “last seen” index number (called a sequence)

the second biggest innovation is returning structured tx data so you can easily scan the mempool’s data for just what you’re looking for

are you using cuckoo filters for mempool in-point membership testing?

no this is much much dumber than that

Would it be good to have Bitcoin Core tools? A module that handles modules so that there is no need for commits regarding tools like yours?

Bitcoin CLI calls to modules-tool-... In order to keep the base core code simple.

did you look at the PR? This uses existing data already stored in core which is currently not exposed(the mempool sequence) and adds a new interface for accessing it (filter out older txs)

I understand. I know 0.00000001 percent about how the code in Bitcoin core works. I've just peanut gallery watched how commits get introduced.

I need to educate myself better on this.

Interesting 🤔

I saw this recently, very nice. Haven't had time to review though. Maybe nostr:npub18d4r6wanxkyrdfjdrjqzj2ukua5cas669ew2g5w7lf4a8te7awzqey6lt3 has some folks who can help?

I am campaigning for steal addresses, ring signatures and confidential transactions into bitcoin core.

I am the only one who supports this. 😂

Maybe one day.

*stealth

ooh 👀

Good luck with your campaign I support it