diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2017-10-10 15:27:26 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2017-11-01 15:23:06 -0400 |
commit | 9c8006dc332139069d798f39406ec67186ecb311 (patch) | |
tree | 84b4f3330847e5bb0d1a5ddcb1827123a0f6caec /test/functional/getchaintips.py | |
parent | de7053f1141756158c2107bcba376401b4cc94e9 (diff) | |
download | bitcoin-9c8006dc332139069d798f39406ec67186ecb311.tar.xz |
Avoid opening copied wallet databases simultaneously
Make sure wallet databases have unique fileids. If they don't, throw an error.
BDB caches do not work properly when more than one open database has the same
fileid, because values written to one database may show up in reads to other
databases.
Bitcoin will never create different databases with the same fileid, but users
can create them by manually copying database files.
BDB caching bug was reported by Chris Moore <dooglus@gmail.com>
https://github.com/bitcoin/bitcoin/issues/11429
Fixes #11429
Github-Pull: #11476
Rebased-From: 478a89c1ef79a75275d1b508122c06eee9386b2d
Diffstat (limited to 'test/functional/getchaintips.py')
0 files changed, 0 insertions, 0 deletions