diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2024-07-15 12:59:19 -0400 |
---|---|---|
committer | Ryan Ofsky <ryan@ofsky.org> | 2024-07-15 13:42:53 -0400 |
commit | 8426e018bf22b5e7e1ffa4b42e06813c470b1cc6 (patch) | |
tree | af062b2782f279e7b04564e51c6bb31c3e32ed12 /test/functional/p2p_handshake.py | |
parent | ff827a8f46e504712285c145e13e72e1b19eb169 (diff) | |
parent | fa14e1d9d5c5dc44396a01583ae94480b7bc29ee (diff) |
Merge bitcoin/bitcoin#30428: log: LogError with FlatFilePos in UndoReadFromDisk
fa14e1d9d5c5dc44396a01583ae94480b7bc29ee log: Fix __func__ in LogError in blockstorage module (MarcoFalke)
fad59a2f0f37f5b7f6076fd91be43448e35f4b7e log: LogError with FlatFilePos in UndoReadFromDisk (MarcoFalke)
aaaa3323f37526862ebf2a2a4bf522c661e6976e refactor: Mark IsBlockPruned const (MarcoFalke)
Pull request description:
These errors should never happen in normal operation. If they do,
knowing the `FlatFilePos` may be useful to determine if data corruption
happened. Also, handle the error `pos.IsNull()` as part of `OpenUndoFile`,
because it may as well have happened due to data corruption.
This mirrors the `LogError` behavior from `ReadBlockFromDisk`.
Also, two other fixup commits in this module.
ACKs for top commit:
kevkevinpal:
ACK [fa14e1d](https://github.com/bitcoin/bitcoin/pull/30428/commits/fa14e1d9d5c5dc44396a01583ae94480b7bc29ee)
tdb3:
cr and light test ACK fa14e1d9d5c5dc44396a01583ae94480b7bc29ee
ryanofsky:
Code review ACK fa14e1d9d5c5dc44396a01583ae94480b7bc29ee. This should make logging clearer and more consistent
Tree-SHA512: abb492a919b4796698d1de0a7874c8eae355422b992aa80dcd6b59c2de1ee0d2949f62b3cf649cd62892976fee640358f7522867ed9d48a595d6f8f4e619df50
Diffstat (limited to 'test/functional/p2p_handshake.py')
0 files changed, 0 insertions, 0 deletions