priority_check
@extendable function priority_check(tx_body: gtx_transaction_body, tx_size: integer, tx_enter_timestamp: integer, current_timestamp: integer): priority_state_v1?(source)
Extendable function that allows to define custom prioritization strategies. If unimplemented, it will return no_op_priority_state()
, which means everything will have a priority of zero.
If this function throws, it will be interpreted as a value of no_op_priority_state()
as well
Throws if any extension of this function throws.
Parameters
tx_body
the transaction
tx_size
size of the transaction in bytes
tx_enter_timestamp
when the transaction entered the queue
current_timestamp
the current timestamp