Merge branch '0.4.x' into 0.5.0.x
authorLuke Dashjr <luke-jr+git@utopios.org>
Mon, 16 Apr 2012 01:05:54 +0000 (21:05 -0400)
committerLuke Dashjr <luke-jr+git@utopios.org>
Mon, 16 Apr 2012 01:05:54 +0000 (21:05 -0400)
Conflicts:
src/keystore.h

1  2 
src/bitcoinrpc.cpp
src/keystore.h
src/main.cpp
src/main.h
src/util.cpp
src/wallet.cpp
src/wallet.h

Simple merge
diff --cc src/keystore.h
@@@ -14,21 -13,12 +14,23 @@@ protected
      mutable CCriticalSection cs_KeyStore;
  
  public:
+     virtual ~CKeyStore() {}
 +    // Add a key to the store.
      virtual bool AddKey(const CKey& key) =0;
 +
 +    // Check whether a key corresponding to a given address is present in the store.
      virtual bool HaveKey(const CBitcoinAddress &address) const =0;
 +
 +    // Retrieve a key corresponding to a given address from the store.
 +    // Return true if succesful.
      virtual bool GetKey(const CBitcoinAddress &address, CKey& keyOut) const =0;
 +
 +    // Retrieve only the public key corresponding to a given address.
 +    // This may succeed even if GetKey fails (e.g., encrypted wallets)
      virtual bool GetPubKey(const CBitcoinAddress &address, std::vector<unsigned char>& vchPubKeyOut) const;
 +
 +    // Generate a new key, and add it to the store
      virtual std::vector<unsigned char> GenerateNewKey();
  };
  
diff --cc src/main.cpp
Simple merge
diff --cc src/main.h
Simple merge
diff --cc src/util.cpp
Simple merge
diff --cc src/wallet.cpp
Simple merge
diff --cc src/wallet.h
Simple merge