Search in sources :

Example 6 with SigValueObj

use of com.hederahashgraph.fee.SigValueObj in project hedera-services by hashgraph.

the class FeeCalculator method metricsFor.

private FeeData metricsFor(Transaction txn, int numPayerSigs, ActivityMetrics metricsCalculator) throws Throwable {
    SigValueObj sigUsage = sigUsageGiven(txn, numPayerSigs);
    TransactionBody body = CommonUtils.extractTransactionBody(txn);
    return metricsCalculator.compute(body, sigUsage);
}
Also used : TransactionBody(com.hederahashgraph.api.proto.java.TransactionBody) SigValueObj(com.hederahashgraph.fee.SigValueObj)

Aggregations

SigValueObj (com.hederahashgraph.fee.SigValueObj)6 Test (org.junit.jupiter.api.Test)5 FeeBuilder.getFeeObject (com.hederahashgraph.fee.FeeBuilder.getFeeObject)4 FeeObject (com.hederahashgraph.fee.FeeObject)4 TransactionBody (com.hederahashgraph.api.proto.java.TransactionBody)1