Signers: Share keypaths for watching wallets

Now LocalTransactionSigner populates ProposedTransaction.keyPaths map even if
there is no private key in the wallet. Other signers may take advantage
of that.
This commit is contained in:
Kosta Korenkov
2014-09-05 16:46:06 +07:00
committed by Mike Hearn
parent dc857f0d83
commit 691de1d22b

View File

@@ -108,7 +108,7 @@ public class WalletTest extends TestWithWallet {
final DeterministicKeyChain keyChain = new DeterministicKeyChain(new SecureRandom());
DeterministicKey partnerKey = DeterministicKey.deserializeB58(null, keyChain.getWatchingKey().serializePubB58());
followingKeys.add(partnerKey);
if (addSigners && i < threshold)
if (addSigners && i < threshold - 1)
wallet.addTransactionSigner(new KeyChainTransactionSigner(keyChain));
}