Skip to content

docs: explain how transaction ordering works #2904

@pavlovdog

Description

@pavlovdog

I need to specify the order of the transactions into the block. In my understanding, for now there's a fee field into the ResponseCheckTx message. So, inside the block, the transactions are ordered according to it. Am I right?

Does it mean, that e.g. I have 10 transactions: Tx_1, Tx_2, Tx_3, ..., Tx_10.

  1. I'm broadcasting them in a random way, for example
  2. Each transaction has a field with it's order in sequence (e.g. Tx_1.order = 1, Tx_2.order = 2 and so on)
  3. During the CheckTxcall for each of them, I'm specifying the fee field of the ResponseCheckTx message equal to the order field of the transaction.

Am I right, that, if they all will be placed into the same block, their order will be Tx_1, Tx_2, Tx_3, ..., Tx_4? If not, how can I implement the specific order into the block?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C:docsComponent: Documentation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions