Files
bitcoin/src/miner.cpp
Gavin Andresen 1c06a9b03c Make CreateNewBlock more robust to coding errors
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.
2016-03-01 13:23:56 -05:00

21 KiB