Browse Source

spec: minor fixes

pull/1178/head
Ethan Buchman 7 years ago
parent
commit
fe632ea32a
4 changed files with 8 additions and 10 deletions
  1. +4
    -6
      docs/specification/new-spec/blockchain.md
  2. +1
    -1
      docs/specification/new-spec/encoding.md
  3. +1
    -1
      docs/specification/new-spec/p2p/connection.md
  4. +2
    -2
      docs/specification/new-spec/p2p/node.md

+ 4
- 6
docs/specification/new-spec/blockchain.md View File

@ -6,7 +6,7 @@ Here we describe the data structures in the Tendermint blockchain and the rules
The Tendermint blockchains consists of a short list of basic data types:
- `Block`
- `Block`
- `Header`
- `Vote`
- `BlockID`
@ -232,7 +232,7 @@ The first block has `block.Header.TotalTxs = block.Header.NumberTxs`.
### LastBlockID
For the previous block's BlockID:
LastBlockID is the previous block's BlockID:
```go
prevBlockParts := MakeParts(prevBlock, state.LastConsensusParams.BlockGossip.BlockPartSize)
@ -297,11 +297,9 @@ block.Header.Proposer in state.Validators
Original proposer of the block. Must be a current validator.
**Note:** this field can only be further verified by real-time participants in the consensus.
This is because the same block can be proposed in multiple rounds for the same height
and we do not track the initial round that the block was proposed.
NOTE: we also need to track the round.
### EvidenceHash
## EvidenceHash
```go
block.EvidenceHash == SimpleMerkleRoot(block.Evidence)


+ 1
- 1
docs/specification/new-spec/encoding.md View File

@ -189,7 +189,7 @@ Note how the fields within each level are sorted.
### MakeParts
TMBIN encodes an object and slices it into parts.
Encode an object using TMBIN and slice it into parts.
```go
MakeParts(object, partSize)


+ 1
- 1
docs/specification/new-spec/p2p/connection.md View File

@ -22,7 +22,7 @@ The ping and pong messages consist of writing a single byte to the connection; 0
When we haven't received any messages on an `MConnection` in time `pingTimeout`, we send a ping message.
When a ping is received on the `MConnection`, a pong is sent in response only if there are no other messages
to send and the peer has not sent us too many pings (how many is too many?).
to send and the peer has not sent us too many pings (TODO).
If a pong or message is not received in sufficient time after a ping, the peer is disconnected from.


+ 2
- 2
docs/specification/new-spec/p2p/node.md View File

@ -1,12 +1,12 @@
# Tendermint Peer Discovery
A Tendermint P2P network has different kinds of nodes with different requirements for connectivity compared to other types of networks.
A Tendermint P2P network has different kinds of nodes with different requirements for connectivity to one another.
This document describes what kind of nodes Tendermint should enable and how they should work.
## Seeds
Seeds are the first point of contact for a new node.
They return a list of known active peers and disconnect....if?
They return a list of known active peers and then disconnect.
Seeds should operate full nodes with the PEX reactor in a "crawler" mode
that continuously explores to validate the availability of peers.


Loading…
Cancel
Save