mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-25 05:14:04 +02:00
If a coding bug of some sort let a bad transaction enter the memory pool, CreateNewBlock would throw a runtime_error which would cause bitcoind to crash. It is better for miners if CreateNewBlock is robust against programming errors, and this pull request makes it more robust. If an invalid block is created, all of the transactions that went into the block are removed from the memory pool and then CreateNewBlock is tried again.
21 KiB
21 KiB