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/29016Published at
2024-01-07 09:26:34Event JSON
{
"id": "ea3757f54adbacbe35d68d1397dcd05940a3e6167ff72180a96908f6c18c4fd9",
"pubkey": "cbc5ef6b01cbd1ffa2cb95a954f04c385a936c1a86e1bb9ccdf2cf0f4ebeaccb",
"created_at": 1704619594,
"kind": 1,
"tags": [
[
"r",
"https://github.com/bitcoin/bitcoin/pull/29016"
]
],
"content": "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\n\nmy 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)\n\nthis is a massive improvement imo for usability of mempool data for apps that want to know about newly arrived txs to their node\n\nthere currently is no RPC for quickly fetching out new outputs created in the mempool or inputs spent. \n\nto 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 \n\nI 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!\n\nhttps://github.com/bitcoin/bitcoin/pull/29016",
"sig": "a9f334e21ca20685d07213275c13f7d2f0c8716873eb5388b72f3a5c4ea5e3b8ff21735ea7b508a1be0081051af121f640c5253a3d97eeae38b7929a66355069"
}