Check minversion before loading the rest of the wallet
authorPieter Wuille <pieter.wuille@gmail.com>
Thu, 22 Mar 2012 03:59:59 +0000 (04:59 +0100)
committerPieter Wuille <pieter.wuille@gmail.com>
Thu, 22 Mar 2012 03:59:59 +0000 (04:59 +0100)
commitef12c2184d926eea25cc804a75bc4068f9f81891
tree5d521bec92448b466b4ae3463ce9f121fc98c663
parent100da7367767e7fa360f48f07b7a20e9374fda84
Check minversion before loading the rest of the wallet

When a 0.6 wallet with compressed pubkeys is created, it writes a
minversion record to prevent older clients from reading it. If the 0.5
loading it sees a key record before seeing the minversion record however,
it will fail with DB_CORRUPT instead of DB_TOO_NEW.
src/db.cpp