mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-23 06:35:17 +01:00
LocalTransactionSigner: make key
local var effectively final
This commit is contained in:
parent
e94d5a4b49
commit
f41336657d
1 changed files with 2 additions and 2 deletions
|
@ -98,11 +98,11 @@ public class LocalTransactionSigner implements TransactionSigner {
|
|||
if (pubKey instanceof DeterministicKey)
|
||||
propTx.keyPaths.put(scriptPubKey, (((DeterministicKey) pubKey).getPath()));
|
||||
|
||||
ECKey key;
|
||||
// locate private key in redeem data. For P2PKH and P2PK inputs RedeemData will always contain
|
||||
// only one key (with private bytes). For P2SH inputs RedeemData will contain multiple keys, one of which MAY
|
||||
// have private bytes
|
||||
if ((key = redeemData.getFullKey()) == null) {
|
||||
ECKey key = redeemData.getFullKey();
|
||||
if (key == null) {
|
||||
log.warn("No local key found for input {}", i);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue