diff options
| author | Pieter Wuille <[email protected]> | 2012-12-08 22:49:04 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2013-01-08 02:00:59 +0100 |
| commit | ef0f422519de4a3ce47d923e5f8f90cd12349f3e (patch) | |
| tree | ba208bc61340c76ceba465a05afe1391ea217086 /src/init.cpp | |
| parent | Parallelize script verification (diff) | |
| download | discoin-ef0f422519de4a3ce47d923e5f8f90cd12349f3e.tar.xz discoin-ef0f422519de4a3ce47d923e5f8f90cd12349f3e.zip | |
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/init.cpp')
0 files changed, 0 insertions, 0 deletions