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)
committerLuke Dashjr <luke-jr+git@utopios.org>
Thu, 22 Mar 2012 20:25:36 +0000 (16:25 -0400)
commitfea0a27ddc30f2d51c386d268499d6c50363c202
treefa1db3a2258d91758e2cbb6b3d44923049f2b08c
parent04dc79f1cc19b48531cc9a16ca502eac34d7e95b
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