diff options
author | Jesse Cohen <jc@jc.lol> | 2018-05-10 15:57:16 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-05-24 13:55:57 -0400 |
commit | bb79aaf93af93d5f9f5097cff4fbb2791af86875 (patch) | |
tree | 39d1687e8d28107e254fd68d8c2c30a36ce11f08 /src/wallet/db.h | |
parent | 0948153ea62ff4921daef326da0fddb8425cd866 (diff) |
Fix concurrency-related bugs in ActivateBestChain
If multiple threads are invoking ActivateBestChain, it was possible to have
them working towards different tips, and we could arrive at a less work tip
than we should. Fix this by introducing a ChainState lock which must
be held for the entire duration of ActivateBestChain to enforce
exclusion in ABC.
Github-Pull: #13023
Rebased-From: a3ae8e68739023e5dba9e5cb190e707ed4603316
Diffstat (limited to 'src/wallet/db.h')
0 files changed, 0 insertions, 0 deletions