Anton Kaliaev
cb91cd5965
[docs] one can also index txs by height now
6 years ago
Zach
92185c017c
Several minor docs & spec cleanup ( #2330 )
* addr_book_strick=false on local nets
* link to spec
* spec: remove TODO, see #1749 instead
* spec: make issues from TODOs
* update docs on addr_book_strict option
6 years ago
JamesRay
d0bb1ab2b0
Filter out empty addresses in persistent_peers/seeds lists ( #2323 )
Fixes #2320
6 years ago
cong
d27cd972d2
Index tx.height ( #2324 )
Refs #2051
6 years ago
Anton Kaliaev
29d2db352e
update outdated abci-cli install instructions ( #2325 )
https://github.com/tendermint/tendermint/pull/2301
6 years ago
Ethan Buchman
eabb1ece8e
tmtime: Canonical, some comments ( #2312 )
6 years ago
Anton Kaliaev
166fd82b70
max-bytes PR follow-up ( #2318 )
* ReapMaxTxs: return all txs if max is negative
this mirrors ReapMaxBytes behavior
See https://github.com/tendermint/tendermint/pull/2184#discussion_r214439950
* increase MaxAminoOverheadForBlock
tested with:
```
func TestMaxAminoOverheadForBlock(t *testing.T) {
maxChainID := ""
for i := 0; i < MaxChainIDLen; i++ {
maxChainID += "𠜎"
}
h := Header{
ChainID: maxChainID,
Height: 10,
Time: time.Now().UTC(),
NumTxs: 100,
TotalTxs: 200,
LastBlockID: makeBlockID(make([]byte, 20), 300, make([]byte, 20)),
LastCommitHash: tmhash.Sum([]byte("last_commit_hash")),
DataHash: tmhash.Sum([]byte("data_hash")),
ValidatorsHash: tmhash.Sum([]byte("validators_hash")),
NextValidatorsHash: tmhash.Sum([]byte("next_validators_hash")),
ConsensusHash: tmhash.Sum([]byte("consensus_hash")),
AppHash: tmhash.Sum([]byte("app_hash")),
LastResultsHash: tmhash.Sum([]byte("last_results_hash")),
EvidenceHash: tmhash.Sum([]byte("evidence_hash")),
ProposerAddress: tmhash.Sum([]byte("proposer_address")),
}
b := Block{
Header: h,
Data: Data{Txs: makeTxs(10000, 100)},
Evidence: EvidenceData{},
LastCommit: &Commit{},
}
bz, err := cdc.MarshalBinary(b)
require.NoError(t, err)
assert.Equal(t, MaxHeaderBytes+MaxAminoOverheadForBlock-2, len(bz)-1000000-20000-1)
}
```
* fix MaxYYY constants calculation
by using math.MaxInt64
See https://github.com/tendermint/tendermint/pull/2184#discussion_r214444244
* pass mempool filter as an option
See https://github.com/tendermint/tendermint/pull/2184#discussion_r214445869
* fixes after Dev's comments
6 years ago
Ismail Khoffi
1de32fba17
Check for int overflow in clist ( #2289 )
* explicitly panic if max capacity is reached
* address review comments
* comments and a test
6 years ago
Zarko Milosevic
7b88172f41
Implement BFT time ( #2203 )
* Implement BFT time
* set LastValidators when creating state in state helper
for heights >= 2
6 years ago
Ethan Buchman
ffe91ae9e3
Merge pull request #2184 from tendermint/2035-max-bytes
MaxBytes
6 years ago
Ethan Buchman
03afad3218
Merge pull request #2307 from tendermint/master
libs/autofile: bring back loops (#2261 )
6 years ago
Peng Zhong
5ecdfacb8e
fix docs base directory ( #2295 )
6 years ago
Ethan Buchman
9e940b95ad
libs/autofile: bring back loops ( #2261 )
* libs/autofile: bring back loops
* changelog, version
6 years ago
Anton Kaliaev
4147f856dc
update arch doc
6 years ago
Anton Kaliaev
02d1b03abb
update comment for MaxBlockSizeBytes
6 years ago
Anton Kaliaev
e873fed815
calculate amino overhead on the fly
6 years ago
Anton Kaliaev
e957f322c7
be more precise in comments
6 years ago
Anton Kaliaev
ad3d42981a
update Gopkg.lock
6 years ago
Anton Kaliaev
0f7485690e
limit chain ID to 50 symbols max
6 years ago
Anton Kaliaev
d73c5cbdb1
reap max bytes from the mempool & check transaction size
See ADR 020: Limiting txs size inside a block docs/architecture/adr-020-block-size.md
Refs #2035
6 years ago
Anton Kaliaev
7b2f7090fd
add missing changelog entry ( #2303 )
https://github.com/tendermint/tendermint/pull/2264#issuecomment-417378396
6 years ago
Dev Ojha
61ab10d655
config: reduce default mempool size ( #2300 )
* config: reduce default mempool size
This reduces the mempool size from 100k to 5k. Note that each secp256k1 sig
takes .5ms to compute. Therefore an adversary could previously delay every
node on the network's computation time upon receiving a block by 50 seconds.
This now reduces that ability to being able to only delay each node by 2.5
seconds. This change should be reverted once ABCI recheck is implemented.
* (squash this) fix test
6 years ago
Anton Kaliaev
3a6cc5e6af
cache codecov script ( #2291 )
6 years ago
Alessio Treglia
c43fb700e3
New NewGoLevelDBWithOpts() to pass opts down to goleveldb ( #2293 )
Closes : #2292
6 years ago
Dev Ojha
bd531401a0
mempool: Store txs by hash inside of cache ( #2234 )
* mempool: Store txs by hash inside of cache
This allows for large cachesizes, without fear of the memory
consumption growing rapidly.
* (squash this) rename hashedTx -> txHash
6 years ago
Ismail Khoffi
9d06d7e306
update secret connection to use a little endian encoded nonce ( #2264 )
* update secret connection to use a little endian encoded nonce
* update encoding of chunk length to be little endian, too
* update comment
* Change comment slightly to trigger circelci
6 years ago
Dev Ojha
b1bc3e4f89
crypto/secp256k1: Fix signature malleability, adopt more efficient en… ( #2239 )
* crypto/secp256k1: Fix signature malleability, adopt more efficient encoding
This removes signature malleability per ADR 14, and makes secp match
the encoding in ADR 15.
* (squash this) add lock
6 years ago
Ethan Buchman
38b401657e
Cleanup up Multisig naming ( #2255 )
* crypto/multisig: Pubkey -> PubKey
* crypto/encoding/amino: use pkg vars for routes
* crypto/multisig/bitarray
* crypto/multisig: ThresholdMultiSignaturePubKey -> PubKeyMultisigThreshold
* crypto/encoding/amino: add PubKeyMultisig to table
* remove bA import alias
https://github.com/tendermint/tendermint/pull/2255#discussion_r211900709
6 years ago
Zach
8972b6e293
Update config.js ( #2287 )
6 years ago
Alessio Treglia
5f255f0f71
Replace db_path with db_dir in default configuration ( #2284 )
* db_path is not being parsed
Fix default configuration, db_path is now db_dir.
Closes : cosmos/cosmos-sdk#1712
* Update CHANGELOG_PENDING.md
6 years ago
Peng Zhong
20e35654c6
lint markdown docs using a stop-words and write-good linters ( #2195 )
* lint docs with write-good, stop-words
* remove package-lock.json
* update changelog
* fix wrong paragraph formatting
* fix some docs formatting
* fix docs format
* fix abci spec format
6 years ago
Ahmad M ElShareif
8a84593c02
Reduce code in common/math ( #2274 )
6 years ago
Zach
aab5947d82
docs: deprecate RTD ( #2280 )
6 years ago
Zach
2f7fc87230
docs: fix img links, closes #2214 ( #2282 )
6 years ago
Anton Kaliaev
1cf6712a36
quick fix for CircleCI ( #2279 )
See https://discuss.circleci.com/t/saving-cache-stopped-working-warning-skipping-this-step-disabled-in-configuration/24423/2
6 years ago
Dev Ojha
43ebc77f9b
Fix typo, closes #2269 ( #2277 )
6 years ago
Ethan Buchman
debe56326f
Merge pull request #2159 from tendermint/bucky/abci-validators
Bucky/abci validators
6 years ago
Ethan Buchman
6dde320591
fixes from review
6 years ago
bradyjoestar
62b2093da5
ABCIAppClient conn close ( #2236 )
Refs https://github.com/grpc/grpc-go/issues/2264
6 years ago
Ethan Buchman
76bb4b15c7
rebase fixes
6 years ago
Ethan Buchman
0cbf9b2a7d
update changelog
6 years ago
Ethan Buchman
0701d79046
minor fixes
6 years ago
Ethan Buchman
4f61b97bbe
update dep for proto. fix types/proto3/block.proto
6 years ago
Ethan Buchman
1111c1848d
update abci spec
6 years ago
Ethan Buchman
c919643c3e
abci: move round back from votes to commit
6 years ago
Ethan Buchman
b189ab676f
makefile: lint flags
6 years ago
Ethan Buchman
fe6a504374
revert gogo version used to generate files
6 years ago
Ethan Buchman
91376627ea
update ADR
6 years ago
Ethan Buchman
e3f54ece2f
abci: VoteInfo, ValidatorUpdate. See ADR-018
6 years ago
Ethan Buchman
f26b83f15f
abci: add next_validators_hash to header
6 years ago