Branch: refs/heads/master
  Home:   https://github.com/conformal/btcwallet
  Commit: 5edd01e8a5165588c3d396513de84438f4bdc590
      
https://github.com/conformal/btcwallet/commit/5edd01e8a5165588c3d396513de84438f4bdc590
  Author: Josh Rickmar <[email protected]>
  Date:   2014-02-04 (Tue, 04 Feb 2014)

  Changed paths:
    M wallet/wallet.go
    M wallet/wallet_test.go

  Log Message:
  -----------
  Unmark addresses as requiring private keys next unlock.

The flag marking chained addresses as needing private keys be
generated on the next wallet unlock was not being correctly unset
after creating and encrypting the private key.  After
serializing/deserializing the wallet, on next unlock, recreating
missing private keys would begin too early in the chain and fail due
to trying to encrypt an already encrypted address.

This change correctly unsets the flag and bumps the version so a
special case can be created for ignoring duplicate encryption attempts
when reading an old wallet file.  Tests have also been added to the
chained pubkey test to test for this error case.


Reply via email to