diff options
| author | Gregory Maxwell <[email protected]> | 2017-04-02 21:39:32 +0000 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-04-04 09:01:03 +0200 |
| commit | a44a6a15f94a6223a71790c5a65eb2b8a5b35dd2 (patch) | |
| tree | 805306e240f12da3627f82857d064c68aa813aba /src/validation.cpp | |
| parent | Make GetWitnessCommitmentIndex callable on blocks without a coinbase txn. (diff) | |
| download | discoin-a44a6a15f94a6223a71790c5a65eb2b8a5b35dd2.tar.xz discoin-a44a6a15f94a6223a71790c5a65eb2b8a5b35dd2.zip | |
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.
Github-Pull: #10146
Rebased-From: 4f15ea102d15eb237b63464725508dc509e98819
Diffstat (limited to 'src/validation.cpp')
0 files changed, 0 insertions, 0 deletions