Package org.consensusj.bitcoinj.signing
Class TestnetFeeCalculator
java.lang.Object
org.consensusj.bitcoinj.signing.TestnetFeeCalculator
- All Implemented Interfaces:
FeeCalculator
Stupid simple fee calculator for testnet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.bitcoinj.base.Coin
calculateFee
(SigningRequest proposedTx) Calculate the fee for an almost-complete transaction.
-
Constructor Details
-
TestnetFeeCalculator
public TestnetFeeCalculator()
-
-
Method Details
-
calculateFee
Description copied from interface:FeeCalculator
Calculate the fee for an almost-complete transaction. The proposed transaction should contain all inputs and outputs. Typically, this means having a change output with a value ofCoin.ZERO
. After calculating the correct fee the change output should be updated with the correct amount.- Specified by:
calculateFee
in interfaceFeeCalculator
- Parameters:
proposedTx
- A nearly-complete proposed transaction.- Returns:
- A recommended fee for this transaction.
-