mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 01:40:26 +01:00
WalletTool: eliminate reassignment of feePerVkb
This commit is contained in:
parent
983febfad0
commit
bce7bc195f
@ -424,11 +424,13 @@ public class WalletTool implements Callable<Integer> {
|
||||
System.err.println("--fee-per-kb and --fee-sat-per-byte cannot be used together.");
|
||||
return 1;
|
||||
} else if (outputsStr != null) {
|
||||
Coin feePerVkb = null;
|
||||
Coin feePerVkb;
|
||||
if (feePerVkbStr != null)
|
||||
feePerVkb = parseCoin(feePerVkbStr);
|
||||
if (feeSatPerVbyteStr != null)
|
||||
else if (feeSatPerVbyteStr != null)
|
||||
feePerVkb = Coin.valueOf(Long.parseLong(feeSatPerVbyteStr) * 1000);
|
||||
else
|
||||
feePerVkb = null;
|
||||
if (selectAddrStr != null && selectOutputStr != null) {
|
||||
System.err.println("--select-addr and --select-output cannot be used together.");
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user