You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
898 B

  1. # Mempool
  2. ## Transaction ordering
  3. Currently, there's no ordering of transactions other than the order they've
  4. arrived (via RPC or from other nodes).
  5. So the only way to specify the order is to send them to a single node.
  6. valA:
  7. - tx1
  8. - tx2
  9. - tx3
  10. If the transactions are split up across different nodes, there's no way to
  11. ensure they are processed in the expected order.
  12. valA:
  13. - tx1
  14. - tx2
  15. valB:
  16. - tx3
  17. If valB is the proposer, the order might be:
  18. - tx3
  19. - tx1
  20. - tx2
  21. If valA is the proposer, the order might be:
  22. - tx1
  23. - tx2
  24. - tx3
  25. That said, if the transactions contain some internal value, like an
  26. order/nonce/sequence number, the application can reject transactions that are
  27. out of order. So if a node receives tx3, then tx1, it can reject tx3 and then
  28. accept tx1. The sender can then retry sending tx3, which should probably be
  29. rejected until the node has seen tx2.