Ethan Buchman
feb08fa4f8
ed25519: use golang/x/crypto fork ( #2558 )
* ed25519: use golang/x/crypto fork
* changelog
* gix GenerateFromPassword
* fixes from review
6 years ago
Anton Kaliaev
9a6cdaddf2
fix contributor's name in CHANGELOG_PENDING ( #2599 )
Refs https://github.com/tendermint/tendermint/pull/2506#issuecomment-428458974
6 years ago
Dev Ojha
12fa9d1cab
crypto/merkle: Remove byter in favor of plain byte slices ( #2595 )
* crypto/merkle: Remove byter in favor of plain byte slices
This PR is fully backwards compatible in terms of function output!
(The Go API differs though) The only test case changes was to refactor
it to be table driven.
* Update godocs per review comments
6 years ago
Matthew Slipper
92343ef484
Add additional metrics ( #2500 )
* Add additional metrics
Continues addressing https://github.com/cosmos/cosmos-sdk/issues/2169 .
* Add nop metrics to fix NPE
* Tweak buckets, code review
* Update buckets
* Update docs with new metrics
* Code review updates
6 years ago
Dev Ojha
ee7b3d260e
crypto/amino: Address anton's comment on PubkeyAminoRoute ( #2592 )
6 years ago
Ethan Buchman
6ec52a9233
types: cap evidence in block validation ( #2560 )
* cap evidence in block validation
* state: use table-driven test for ValidateBlockHeader
* state: test evidence cap
* fixes from review
6 years ago
Anton Kaliaev
05a119aab5
libs: Test deadlock from listener removal inside callback ( #2588 )
Closes #2575
6 years ago
Dev Ojha
d7341c4057
distribution: Lock binary dependencies to specific commits ( #2550 )
6 years ago
Anton Kaliaev
3fcb62b931
:tools: Update docs & fix build-docker Makefile target ( #2584 )
bump alpine version to 3.8
6 years ago
Dev Ojha
8761b27489
crypto: Add a way to go from pubkey to route ( #2574 )
This is intended for use in a future PR for #2414
6 years ago
Joon
e7708850c0
libs: Let prefixIterator implements Iterator correctly ( #2581 )
Fixes #2577
6 years ago
Overbool
561fc2d717
test(db): Test itr.Value in checkValuePanics ( #2580 )
Fixes #2573
6 years ago
Anton Kaliaev
724e264ff5
separate mock evidence from real evidence ( #2571 )
Closes #2525
6 years ago
Anton Kaliaev
989a2f32b1
libs: Refactor & document events code ( #2576 )
* [libs/events] add more godoc comments
* [libs/events] refactor code
- improve var naming
- improve code structure
- do not use defers for unlocking mutexes (defer takes time)
6 years ago
goolAdapter
4b2bf023dd
libs: Fix event concurrency flaw ( #2519 )
* fix event concurrency flaw
* modify changelog
* fix a mistake
* fix a lint issue
* modify changelog
* modify for review issue
* modify for review issue
* modify for review issue
6 years ago
Dev Ojha
c17547ac2f
Switch nodeID to use tmhash.Size, add test names for net addr tests ( #2559 )
* Switch nodeID to be tmhash.Size, add test names for net addr tests
Both of these came up when locally trying to change tmhash size.
* fix error introduced by merge
6 years ago
Dev Ojha
b1e7fac787
crypto/random: Use chacha20, add forward secrecy ( #2562 )
Ref #2099
6 years ago
Anton Kaliaev
35b671214c
tools: Refactor tm-bench ( #2570 )
* specify time unit for FlushThrottleTimeout in TestP2PConfig
Refs #2555
* [tm-bench] refactor code
https://github.com/tendermint/tendermint/pull/2405#pullrequestreview-157166387
6 years ago
bradyjoestar
4c0c6e0116
[tm-bench] exit on CTRL-C ( #2405 )
6 years ago
Zach
b8556b97b8
circle: save p2p logs as artifacts ( #2566 )
6 years ago
goolAdapter
5f88fe0e9b
fix p2p switch FlushThrottle value ( #2569 )
6 years ago
Pierrick Hymbert
1d8348d707
[p2p] Malformed external address causes SIGSEGV (if URL has empty host) ( #2564 )
fix #2071
Signed-off-by: phymbert <pierrick.hymbert@gmail.com>
6 years ago
Ethan Buchman
f471fc4963
abci: codespace ( #2557 )
* abci: codespace
* changelog
6 years ago
Joon
2d726a620b
add adr ( #2553 )
6 years ago
Dev Ojha
dfda7b442f
types: Remove pubkey from validator hash ( #2512 )
* types: Remove pubkey from validator hash
* undo lock file change
* Update Spec
6 years ago
Zach
6e5f58191e
add spec/abci/readme to sidebar ( #2551 )
6 years ago
Dev Ojha
c648c93807
Fix random distribution in bitArray.PickRandom ( #2534 )
* Fix random distribution in bitArray.PickRandom
Previously it was very biased. 63 "_" followed by a single "x" had
much greater odds of being chosen. Additionally, the last element was
skewed. This fixes that by first preproccessing the set of all true
indices, and then randomly selecting a single element from there.
This commit also makes the code here significantly simpler, and
improves test cases.
* unlock mtx right after we select true indices
6 years ago
bradyjoestar
5b120d788a
lite support maxOpenConnections ( #2413 )
6 years ago
Alexander Simmerl
e6a55b7be0
consensus: Add ADR for first stage consensus refactor ( #2462 )
6 years ago
Ismail Khoffi
d2be7482e1
[ADR][DRAFT] 024: SignBytes and validator types in privval ( #2445 )
* first draft for ADR summarizing discussion from:
https://github.com/tendermint/tendermint/issues/1622
* fix link and add comment about pub-key per message and fix link
* fix link and add comment about pub-key per message; also:
- fix link
- add little diagram
- fix typo
* Add a slightly different approach
* typo and ADR number
6 years ago
Ethan Buchman
44a72fb642
Merge pull request #2544 from tendermint/bucky/adr-029
Bucky/adr 029
6 years ago
Ethan Buchman
c15fc9ff63
adr-029: update CheckBlock
6 years ago
JamesRay
be1760cc25
Create adr-021-check block txs before prevote.md
6 years ago
Anton Kaliaev
5b1b1ea58a
[libs/autofile] fix DATA RACE by removing openFile() call ( #2539 )
There's a time window after we call RotateFile() where autofile#index+1
does not exist. It will be created during the next call to Write(). BUT
if somebody calls NewReader() before Write(), it will fail with "open
/tmp/wal#index+1/wal: no such file or directory"
We must create file (either by calling gr.Head.openFile() or directly)
during NewReader() to ensure read calls succeed.
Closes #2538
6 years ago
Jeremiah Andrews
f11aef20a0
Add ADR for Commit changes ( #2374 )
6 years ago
Zach
303649818c
update docs links & sidebar ( #2541 )
* docs: fix links
* docs: add readme from each section to the sidebar
6 years ago
Zarko Milosevic
12675ecd92
consensus: Wait timeout precommit before starting new round ( #2493 )
* Disable transitioning to new round upon 2/3+ of Precommit nils
Pull in ensureVote test function from https://github.com/tendermint/tendermint/pull/2132
* Add several ensureX test methods to wrap channel read with timeout
* Revert panic in tests
6 years ago
Anton Kaliaev
cb2e58411f
add a missing changelog entry
6 years ago
ValarDragon
0755a5203d
bit_array: Simplify subtraction
also, fix potential bug in Or function
6 years ago
JamesRay
c94133ed1b
Fix a bug in bit_array's sub function ( #2506 )
6 years ago
Anton Kaliaev
f3d08f969d
[rpc] fix /abci_query: trusted was renamed to prove ( #2531 )
6 years ago
goolAdapter
5c6999cf8f
fix evidence db iter leak ( #2516 )
Also make reversing a slice more efficient
6 years ago
Dev Ojha
fd1b8598bc
Make block_test.go more table driven ( #2526 )
6 years ago
Anton Kaliaev
32e274cff0
config: Refactor ValidateBasic ( #2503 )
* timeouts as time.Duration are also breaking for old configs
* split BaseConfig#ValidateBasic into smaller methods
6 years ago
Ethan Buchman
ccd04587ff
docs/spec/abci: consensus params and general merkle ( #2524 )
* docs: links to dirs need a slash
* docs/spec/abci: consensus params and general merkle
6 years ago
Ethan Buchman
52e21cebcf
remove some xxx comments and the config.mempool.recheck_empty ( #2505 )
* remove some XXX
* config: remove Mempool.RecheckEmpty
* docs: remove recheck_empty
6 years ago
Dev Ojha
69c7aa77bc
clist: speedup Next by removing defers ( #2511 )
This change doubles the speed of the mempool's reaping.
Before:
BenchmarkReap-8 5000 365390 ns/op 122887 B/op
After:
BenchmarkReap-8 10000 158274 ns/op 122882 B/op
6 years ago
Ethan Buchman
ead9fc0179
Docs cleanup ( #2522 )
* minor doc cleanup
* docs/tools: link fixes and readme
* docs/networks: networks/local/README.md
* docs: update vuepress config
* docs: fixes from review
6 years ago
Ethan Buchman
f36ed7e7ff
General Merkle Follow Up ( #2510 )
* tmlibs -> libs
* update changelog
* address some comments from review of #2298
6 years ago
Joon
71a34adfe5
General Merkle Proof ( #2298 )
* first commit
finalize rebase
add protoc_merkle to Makefile
* in progress
* fix kvstore
* fix tests
* remove iavl dependency
* fix tx_test
* fix test_abci_cli
fix test_apps
* fix test_apps
* fix test_cover
* rm rebase residue
* address comment in progress
* finalize rebase
6 years ago