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.

25 lines
1.0 KiB

7 years ago
7 years ago
  1. # Transactional Semantics
  2. In [Using Tendermint](../tendermint-core/using-tendermint.md#broadcast-api) we
  3. discussed different API endpoints for sending transactions and
  4. differences between them.
  5. What we have not yet covered is transactional semantics.
  6. When you send a transaction using one of the available methods, it first
  7. goes to the mempool. Currently, it does not provide strong guarantees
  8. like "if the transaction were accepted, it would be eventually included
  9. in a block (given CheckTx passes)."
  10. For instance a tx could enter the mempool, but before it can be sent to
  11. peers the node crashes.
  12. We are planning to provide such guarantees by using a WAL and replaying
  13. transactions (See
  14. [this issue](https://github.com/tendermint/tendermint/issues/248)), but
  15. it's non-trivial to do this all efficiently.
  16. The temporary solution is for clients to monitor the node and resubmit
  17. transaction(s) and/or send them to more nodes at once, so the
  18. probability of all of them crashing at the same time and losing the msg
  19. decreases substantially.