Remove uses of CheckFinalTx in wallet code

This commit does not change behavior.
This commit is contained in:
Russell Yanofsky
2017-07-28 18:13:23 -04:00
parent f3f9c1de19
commit 80f52a2267
5 changed files with 18 additions and 15 deletions

View File

@@ -8,6 +8,7 @@
#include <chainparams.h>
#include <primitives/block.h>
#include <sync.h>
#include <threadsafety.h>
#include <uint256.h>
#include <util/system.h>
#include <validation.h>
@@ -132,6 +133,11 @@ class LockImpl : public Chain::Lock
}
return nullopt;
}
bool checkFinalTx(const CTransaction& tx) override
{
LockAnnotation lock(::cs_main);
return CheckFinalTx(tx);
}
};
class LockingStateImpl : public LockImpl, public UniqueLock<CCriticalSection>