Search in sources :

Example 1 with FeeSchedule

use of com.hederahashgraph.api.proto.java.FeeSchedule in project hedera-services by hashgraph.

the class FeeCalculator method init.

public void init() {
    if (setup.useFixedFee()) {
        usingFixedFee = true;
        fixedFee = setup.fixedFee();
        return;
    }
    FeeSchedule feeSchedule = provider.currentSchedule();
    feeSchedule.getTransactionFeeScheduleList().forEach(f -> {
        opFeeData.put(f.getHederaFunctionality(), feesListToMap(f.getFeesList()));
    });
    tokenTransferUsageMultiplier = setup.feesTokenTransferUsageMultiplier();
}
Also used : FeeSchedule(com.hederahashgraph.api.proto.java.FeeSchedule)

Aggregations

FeeSchedule (com.hederahashgraph.api.proto.java.FeeSchedule)1