mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 22:58:32 +01:00
Wallet.completeTx: Harmonize logging of requested and effective fee/fee rate.
This commit is contained in:
parent
9cfa0a35a1
commit
2f14c76fb8
1 changed files with 2 additions and 8 deletions
|
@ -3929,8 +3929,8 @@ public class Wallet extends BaseTaggableObject
|
|||
value = value.add(output.getValue());
|
||||
}
|
||||
|
||||
log.info("Completing send tx with {} outputs totalling {} (not including fees)",
|
||||
req.tx.getOutputs().size(), value.toFriendlyString());
|
||||
log.info("Completing send tx with {} outputs totalling {} and a fee of {}/kB", req.tx.getOutputs().size(),
|
||||
value.toFriendlyString(), req.feePerKb.toFriendlyString());
|
||||
|
||||
// If any inputs have already been added, we don't need to get their value from wallet
|
||||
Coin totalInput = Coin.ZERO;
|
||||
|
@ -4007,12 +4007,6 @@ public class Wallet extends BaseTaggableObject
|
|||
if (size > Transaction.MAX_STANDARD_TX_SIZE)
|
||||
throw new ExceededMaxTransactionSize();
|
||||
|
||||
final Coin calculatedFee = req.tx.getFee();
|
||||
if (calculatedFee != null)
|
||||
log.info(" with a fee of {}/kB, {} for {} bytes",
|
||||
calculatedFee.multiply(1000).divide(size).toFriendlyString(), calculatedFee.toFriendlyString(),
|
||||
size);
|
||||
|
||||
// Label the transaction as being self created. We can use this later to spend its change output even before
|
||||
// the transaction is confirmed. We deliberately won't bother notifying listeners here as there's not much
|
||||
// point - the user isn't interested in a confidence transition they made themselves.
|
||||
|
|
Loading…
Add table
Reference in a new issue