Fix issue with deserialization and currentAddresses

This commit is contained in:
Devrandom
2014-08-10 16:23:08 -07:00
committed by Mike Hearn
parent a3ced5fe5d
commit 2d3bfc07c7

View File

@@ -157,7 +157,7 @@ public class KeyChainGroup {
marriedKeysScripts = new LinkedHashMap<ByteString, Script>();
maybeLookaheadScripts();
if (!this.currentKeys.isEmpty()) {
if (!this.followingKeychains.isEmpty()) {
DeterministicKey followedWatchKey = getActiveKeyChain().getWatchingKey();
for (Map.Entry<KeyChain.KeyPurpose, DeterministicKey> entry : this.currentKeys.entrySet()) {
Address address = makeP2SHOutputScript(entry.getValue(), followedWatchKey).getToAddress(params);