Page MenuHomePhabricator

Merge #14097: validation: Log FormatStateMessage on ConnectBlock error in ConnectTip
ClosedPublic

Authored by jasonbcox on Apr 20 2020, 17:09.

Details

Summary

fa309dc30579acebff33380abdfe728c1cf59f92 validation: Log FormatStateMessage on ConnectBlock error in ConnectTip (MarcoFalke)

Pull request description:

This change additionally logs the validation state on error, which is not logged at all on current master.

Before:
```
ERROR: ConnectTip(): ConnectBlock ffffff.... failed
```

After:
```
ERROR: ConnectTip: ConnectBlock ffffff.... failed, bad-cb-amount (code 16)
```

Tree-SHA512: e69ee0266772b3f77c0193c4a959c2444bf1a51259bd29d790cf665582b037997e520c8567f70b36362c071dcfe1a8ebd7c0f2286cf1b842df5731960e7e1ba0

Backport of Core PR14097

The test change is not part of the original PR because those error paths diverge on ABC vs Core.

Test Plan
ninja check
test_runner.py

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.Apr 20 2020, 17:57