Class FixedPricingMode

    • Constructor Detail

      • FixedPricingMode

        public FixedPricingMode()
      • FixedPricingMode

        public FixedPricingMode​(int additionalComputationFactor,
                                int gasPriceTolerance)
    • Method Detail

      • getByteTag

        public byte getByteTag()
        Specified by:
        getByteTag in interface Tag
      • getAdditionalComputationFactor

        public int getAdditionalComputationFactor()
        User-specified additional computation factor (minimum 0). If "0" is provided, no additional logic is applied to the computation limit. Each value above "0" tells the node that it needs to treat the transaction as if it uses more gas than it's serialized size indicates. Each "1" will increase the "wasm lane" size bucket for this transaction by 1. So if the size of the transaction indicates bucket "0" and "additional_computation_factor = 2", the transaction will be treated as a "2".
      • getGasPriceTolerance

        public int getGasPriceTolerance()
        User-specified gas_price tolerance (minimum 1). This is interpreted to mean "do not include this transaction in a block if the current gas price is greater than this number"
      • setAdditionalComputationFactor

        public void setAdditionalComputationFactor​(int additionalComputationFactor)
        User-specified additional computation factor (minimum 0). If "0" is provided, no additional logic is applied to the computation limit. Each value above "0" tells the node that it needs to treat the transaction as if it uses more gas than it's serialized size indicates. Each "1" will increase the "wasm lane" size bucket for this transaction by 1. So if the size of the transaction indicates bucket "0" and "additional_computation_factor = 2", the transaction will be treated as a "2".
      • setGasPriceTolerance

        public void setGasPriceTolerance​(int gasPriceTolerance)
        User-specified gas_price tolerance (minimum 1). This is interpreted to mean "do not include this transaction in a block if the current gas price is greater than this number"