mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 20:11:23 +00:00
Wallet.completeTx: Harmonize logging of requested and effective fee/fee rate.
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user