Global Feed Post Login
Replying to Avatar niftynei() 🇺🇸💸🧡

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

Avatar
Sjors Provoost 2y ago

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

Reply to this note

Please Login to reply.

Discussion

No replies yet.