RunOnFlux / fluxd

Flux Daemon
https://runonflux.io
MIT License
78 stars 43 forks source link

[Pools] Ability for mempool to remove transactions that fail block validity #201

Closed blondfrogs closed 1 year ago

blondfrogs commented 2 years ago

When getblocktemplate is called it takes in transactions from the mempool to build a block. If one of those transactions ends up being invalid the getblocktemplate rpc call will fail. This can cause pools to stop producing valid block data for their miners to solve.

This code change makes it so that if getblocktemplate fails to produce a valid block because of transactions in the block. The invalid transactions will be removed from the mempool so that the next time getblocktemplate is called it won't fail over and over