diff options
| author | Gregory Maxwell <[email protected]> | 2017-04-02 21:39:32 +0000 |
|---|---|---|
| committer | Gregory Maxwell <[email protected]> | 2017-04-03 07:15:36 +0000 |
| commit | 4f15ea102d15eb237b63464725508dc509e98819 (patch) | |
| tree | ed68b29e42f3cf9bf79e741203aca1b0e7e54a89 /src/httpserver.cpp | |
| parent | Make GetWitnessCommitmentIndex callable on blocks without a coinbase txn. (diff) | |
| download | discoin-4f15ea102d15eb237b63464725508dc509e98819.tar.xz discoin-4f15ea102d15eb237b63464725508dc509e98819.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.
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions