// index using powers of 2 for efficient bitmasking
enum PolicyType : uint32 {
GasPrice = 1,
WitnessLimit = 2,
Maturity = 4,
MaxFee = 8,
}
name | type | description |
---|
gasPrice | uint64 | Gas price for transaction |
name | type | description |
---|
witnessLimit | uint64 | The maximum amount of witness data allowed for the transaction |
Given helper len()
that returns the number of bytes of a field.
Transaction is invalid if:
-
len(tx.witnesses) > witnessLimit
name | type | description |
---|
maturity | uint32 | Block until which the transaction cannot be included. |
Transaction is invalid if:
name | type | description |
---|
max_fee | uint64 | The maximum fee payable by this transaction using BASE_ASSET . |
Transaction is invalid if:
-
max_fee > sum_inputs(tx, BASE_ASSET_ID) - sum_outputs(tx, BASE_ASSET_ID)
-
max_fee < reserved_fee_balance(tx, BASE_ASSET_ID)