aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/chain.cpp
diff options
context:
space:
mode:
authorRussell Yanofsky <[email protected]>2017-07-28 18:13:23 -0400
committerRussell Yanofsky <[email protected]>2019-02-22 15:43:02 -0400
commit80f52a2267f44a9cae4440615df3ff989be1579c (patch)
tree4497a03d9034c0d81400ce97ec9d80ce146c31fc /src/interfaces/chain.cpp
parentMerge #15435: rpc: Add missing #include (diff)
downloaddiscoin-80f52a2267f44a9cae4440615df3ff989be1579c.tar.xz
discoin-80f52a2267f44a9cae4440615df3ff989be1579c.zip
Remove uses of CheckFinalTx in wallet code
This commit does not change behavior.
Diffstat (limited to 'src/interfaces/chain.cpp')
-rw-r--r--src/interfaces/chain.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/interfaces/chain.cpp b/src/interfaces/chain.cpp
index da810bc5e..c7c2d4e91 100644
--- a/src/interfaces/chain.cpp
+++ b/src/interfaces/chain.cpp
@@ -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>