priority_check_v1

@mount("gtx_api.priority_check_v1") query priority_check_v1(tx_body: gtx_transaction_body, tx_size: integer, tx_enter_timestamp: integer, current_timestamp: integer): priority_state_v1(source)

This query is used by Postchain. It will be called for every transaction, and the result will be used to determine the transaction priority.

This is not an actual implementation, it simply calls priority_check to allow the implementation of this query to be defined by the end user.

Throws if the implementation defined in priority_check 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

See also

https://gitlab.com/chromaway/postchain/blob/dev/postchain-base/src/main/kotlin/net/postchain/base/BaseTransactionPrioritizer.kt

https://gitlab.com/chromaway/postchain/blob/dev/postchain-base/src/main/kotlin/net/postchain/base/BaseTransactionPrioritizer.kt