Auto-upgrade to HD when fetching a change address.

This commit is contained in:
Andreas Schildbach 2014-07-03 13:43:40 +02:00 committed by Mike Hearn
parent a6ea2fa3ba
commit 48d748d2be

View file

@ -491,7 +491,7 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha
/** Returns the address used for change outputs. Note: this will probably go away in future. */
public Address getChangeAddress() {
return keychain.currentAddress(KeyChain.KeyPurpose.CHANGE);
return currentAddress(KeyChain.KeyPurpose.CHANGE);
}
/**