Function calculateEnergyCost

  • The energy cost is assigned according to the formula: A * signatureCount + B * size + C_t, where C_t is a transaction specific cost.

    The transaction specific cost can be found at https://github.com/Concordium/concordium-base/blob/main/haskell-src/Concordium/Cost.hs.

    Returns

    the energy cost for the transaction, to be set in the transaction header

    Parameters

    • signatureCount: bigint

      number of signatures for the transaction

    • payloadSize: bigint

      size of the payload in bytes

    • transactionSpecificCost: bigint

      a transaction specific cost

    Returns Energy.Type

Generated using TypeDoc