Check transaction count early in submitblock.
There is no point in even hashing a submitted block which doesn't have a coinbase transaction.
This also results in more useful error reporting on corrupted input.
Thanks to rawodb for the bug report.
Check transaction count early in submitblock.
There is no point in even hashing a submitted block which doesn't have a coinbase transaction.
This also results in more useful error reporting on corrupted input.
Thanks to rawodb for the bug report.
This isn't actually needed anywhere, but it's less brittle.
There is no point in even hashing a submitted block which doesn't have
a coinbase transaction.
This also results in more useful error reporting on corrupted input.
Thanks to rawodb for the bug report.
utACK 30f30c0f99d21d6c8476c759104de5bb3218a188
utACK 30f30c0
Reminder: this needs a functional test to prevent regression, but not necessary in this PR.
Milestone
0.14.1