1

https://docs.solana.com/developing/clients/jsonrpc-api#getblock

Will the order of transactions in the block, be consistent if requested again on a different node or at a different time?

I understand that some transactions can be processed concurrently. This makes me question whether the ordering within the returned block is arbitrary or deterministic or locked.

1 Answer 1

2

If transaction have data dependencies, they will be stored sequentially in the block inside a special section called an entry that requires ordering.

If there are no data dependencies (e.g. some tx writing to some account and the next tx reading from it), then things can explicitly be randomized, and execution order is not guaranteed.

See also this question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.