mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-01 21:17:13 +00:00
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:
committed by
Mike Hearn
parent
dc857f0d83
commit
691de1d22b
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user