diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-12-08 22:49:04 +0100 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2013-01-08 02:00:59 +0100 |
commit | ef0f422519de4a3ce47d923e5f8f90cd12349f3e (patch) | |
tree | ba208bc61340c76ceba465a05afe1391ea217086 /src/script.h | |
parent | f9cae832e6f56c6abe89b3bf05d1f176c2a7c913 (diff) |
Remove contention on signature cache during block validation
Since block validation happens in parallel, multiple threads may be
accessing the signature cache simultaneously. To prevent contention:
* Turn the signature cache lock into a shared mutex
* Make reading from the cache only acquire a shared lock
* Let block validations not store their results in the cache
Diffstat (limited to 'src/script.h')
-rw-r--r-- | src/script.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script.h b/src/script.h index f7cf7e8e9e..ae316b33c4 100644 --- a/src/script.h +++ b/src/script.h @@ -32,6 +32,7 @@ enum SCRIPT_VERIFY_NONE = 0, SCRIPT_VERIFY_P2SH = (1U << 0), SCRIPT_VERIFY_STRICTENC = (1U << 1), + SCRIPT_VERIFY_NOCACHE = (1U << 2), }; enum txnouttype |