diff --git a/src/evo/specialtxman.cpp b/src/evo/specialtxman.cpp index 1b807d751b4ebf..ac8965095643c4 100644 --- a/src/evo/specialtxman.cpp +++ b/src/evo/specialtxman.cpp @@ -57,6 +57,8 @@ bool CheckSpecialTx(const CTransaction& tx, const CBlockIndex* pindexPrev, const static bool ProcessSpecialTx(const CTransaction& tx, const CBlockIndex* pindex, CMNHFManager& mnhfManager, TxValidationState& state) { + AssertLockHeld(cs_main); + if (tx.nVersion != 3 || tx.nType == TRANSACTION_NORMAL) { return true; } @@ -81,6 +83,8 @@ static bool ProcessSpecialTx(const CTransaction& tx, const CBlockIndex* pindex, static bool UndoSpecialTx(const CTransaction& tx, const CBlockIndex* pindex, CMNHFManager& mnhfManager) { + AssertLockHeld(cs_main); + if (tx.nVersion != 3 || tx.nType == TRANSACTION_NORMAL) { return true; }