RelayNode icon indicating copy to clipboard operation
RelayNode copied to clipboard

RPCClient should use something smarter than getrawmempool

Open TheBlueMatt opened this issue 10 years ago • 2 comments

getblocktemplate would be nice, though that might be too slow? getrawmempool and doing our own sorting really sucks, though.

TheBlueMatt avatar Jul 25 '15 22:07 TheBlueMatt

I switched this to getblocktemplate since getrawmempool was just returning a random subset of the spam transactions instead of the subset which was selected for block inclusion (I hope this works better). Still, this sucks because we miss the thousand transactions which just barely don't make it into each block, which could kill us in the case of two back to back blocks.

TheBlueMatt avatar Aug 01 '15 02:08 TheBlueMatt

The real issue is that current mempools are something like 1/2-block-worth-of-real-txn, 5-blocks-worth-of-spam-txn, where the spam txn all have identical feePerKb, so its actually impossible to pick good transactions for pre-relay (Bitcoin Core needs to sort by fee-then-hash instead of fee).

TheBlueMatt avatar Aug 06 '15 04:08 TheBlueMatt