Why Nostr? What is Njump?
2024-01-07 09:26:34

niftynei on Nostr: I heard on a space today that the best way to get a PR merged in core is to campaign ...

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
Author Public Key
npub1e0z776cpe0gllgktjk54fuzv8pdfxmq6smsmh8xd7t8s7n474n9smk0txy