forked from tendermint/tendermint
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: explain create_empty_blocks configurations Closes tendermint#3307 * Vagrantfile: install nodejs for docs * update docs instructions npm install does not make sense since there's no packages.json file * explain broadcast_tx_* tx format Closes tendermint#536 * docs: explain how transaction ordering works Closes tendermint#2904 * bring in consensus parameters explained * example for create_empty_blocks_interval * bring in explanation from tendermint#2487 (comment) * link to formatting instead of duplicating info
- Loading branch information
Showing
7 changed files
with
141 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Mempool | ||
|
||
## Transaction ordering | ||
|
||
Currently, there's no ordering of transactions other than the order they've | ||
arrived (via RPC or from other nodes). | ||
|
||
So the only way to specify the order is to send them to a single node. | ||
|
||
valA: | ||
- tx1 | ||
- tx2 | ||
- tx3 | ||
|
||
If the transactions are split up across different nodes, there's no way to | ||
ensure they are processed in the expected order. | ||
|
||
valA: | ||
- tx1 | ||
- tx2 | ||
|
||
valB: | ||
- tx3 | ||
|
||
If valB is the proposer, the order might be: | ||
|
||
- tx3 | ||
- tx1 | ||
- tx2 | ||
|
||
If valA is the proposer, the order might be: | ||
|
||
- tx1 | ||
- tx2 | ||
- tx3 | ||
|
||
That said, if the transactions contain some internal value, like an | ||
order/nonce/sequence number, the application can reject transactions that are | ||
out of order. So if a node receives tx3, then tx1, it can reject tx3 and then | ||
accept tx1. The sender can then retry sending tx3, which should probably be | ||
rejected until the node has seen tx2. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters