diff options
author | Jon Atack <jon@atack.com> | 2021-09-09 18:48:22 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2022-01-25 20:43:22 +0100 |
commit | 572393448b4d32f91b92edc84b4200ab52d62422 (patch) | |
tree | 853d70a4fc427391ff7389f51e5ab9cf178adbc0 /src/chain.h | |
parent | 2e557ced2830fc54476e598d52225f1679205e7d (diff) |
Require CBlockIndex::GetUndoPos() to hold mutex cs_main
Diffstat (limited to 'src/chain.h')
-rw-r--r-- | src/chain.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chain.h b/src/chain.h index 534f226f28..fc89599bd1 100644 --- a/src/chain.h +++ b/src/chain.h @@ -237,8 +237,9 @@ public: return ret; } - FlatFilePos GetUndoPos() const + FlatFilePos GetUndoPos() const EXCLUSIVE_LOCKS_REQUIRED(::cs_main) { + AssertLockHeld(::cs_main); FlatFilePos ret; if (nStatus & BLOCK_HAVE_UNDO) { ret.nFile = nFile; |