Jae Kwon
5b19fcf204
p2p: AddressBook requires addresses to have IDs; Do not close conn immediately after sending pex addrs in seed mode ( #2797 )
* Require addressbook to only store addresses with valid ID
* Do not shut down peer immediately after sending pex addrs in SeedMode
* p2p: fix #2773
* seed mode: use go-routine to sleep before stopping peer
6 years ago
Anton Kaliaev
1944d8534b
test AutoFile#Size (happy path)
6 years ago
Anton Kaliaev
13badc1d29
[autofile/group] do not panic when checking size
It's OK if the head will grow a little bit bigger, but we'll avoid
panic.
Refs #2703
6 years ago
Anton Kaliaev
091d2c3e5e
openFile creates a file if not exist => ErrNotExist is not possible
6 years ago
Anton Kaliaev
d178ea9eaf
use our logger in autofile/group
6 years ago
Catalin Pirvu
46d32af055
Add tests for ValidateBasic methods ( #2754 )
Fixes #2740
6 years ago
Zach
8b77328313
[docs] improve organization of ABCI docs & fix links ( #2749 )
* dedup with spec/abci/client-server
* fixup abci/readme
* link to getting started in abci/README
* https
* spec/abci: some deduplication
* docs: remove extraneous comment
6 years ago
Ethan Buchman
6e9aee5460
p2p: peer-id -> peer_id ( #2771 )
* p2p: peer-id -> peer_id
* update changelog
6 years ago
Anton Kaliaev
d460df1335
mempool: print postCheck error ( #2762 )
This is a follow-up from https://github.com/tendermint/tendermint/pull/2724
Closes #2761
6 years ago
Jae Kwon
03e42d2e38
Fix crypto/merkle ProofOperators.Verify to check bounds on keypath pa… ( #2756 )
* Fix crypto/merkle ProofOperators.Verify to check bounds on keypath parts.
* Update PENDING
6 years ago
Anton Kaliaev
b8a9b0bf78
Mempool WAL is still created by default in home directory, leads to permission errors ( #2758 )
* only invoke InitWAL/CloseWAL if WalPath is not empty
Closes #2717
* panic if WAL is not initialized when calling CloseWAL
* add a changelog entry
6 years ago
Ethan Buchman
7246ffc48f
mempool: ErrPreCheck and more log info ( #2724 )
* mempool: ErrPreCheck and more log info
* change Pre/PostCheckFunc to return errors
also, continue execution when checking txs in mempool_test if
err=PreCheckErr
6 years ago
Ethan Buchman
071ebdd514
Merge pull request #2704 from tendermint/2702-proposal-pol-round-validation
if some process locks a block in round 0, then 0 is valid proposal.PO…
6 years ago
Ethan Buchman
8760c5b4f9
Merge branch 'develop' into 2702-proposal-pol-round-validation
6 years ago
Ethan Buchman
59b75d3f28
Merge pull request #2753 from tendermint/master
Merge pull request #2750 from tendermint/release/v0.26.0
6 years ago
Ethan Buchman
c086d0a341
Merge pull request #2750 from tendermint/release/v0.26.0
Release/v0.26.0
6 years ago
Ethan Buchman
322cee9156
Release/v0.26.0 ( #2726 )
* changelog_pending -> changelog
* update changelog
* update changelog
* update changelog and upgrading
6 years ago
Anton Kaliaev
80e4fe6c0d
[ADR] [DRAFT] pubsub 2.0 ( #2532 )
* pubsub adr
Refs #951 , #1879 , #1880
* highlight question
* fix typos after Ismail's review
6 years ago
Anton Kaliaev
fb91ef7462
validate reactor messages ( #2711 )
* validate reactor messages
Refs #2683
* validate blockchain messages
Refs #2683
* validate evidence messages
Refs #2683
* todo
* check ProposalPOL and signature sizes
* add a changelog entry
* check addr is valid when we add it to the addrbook
* validate incoming netAddr (not just nil check!)
* fixes after Bucky's review
* check timestamps
* beef up block#ValidateBasic
* move some checks into bcBlockResponseMessage
* update Gopkg.lock
Fix
```
grouped write of manifest, lock and vendor: failed to export github.com/tendermint/go-amino: fatal: failed to unpack tree object 6dcc6ddc14
```
by running `dep ensure -update`
* bump year since now we check it
* generate test/p2p/data on the fly using tendermint testnet
* allow sync chains older than 1 year
* use full path when creating a testnet
* move testnet gen to test/docker/Dockerfile
* relax LastCommitRound check
Refs #2737
* fix conflicts after merge
* add small comment
* some ValidateBasic updates
* fixes
* AppHash length is not fixed
6 years ago
Ethan Buchman
a22c962e28
TMHASH is 32 bytes. Closes #1990 ( #2732 )
* tmhash is fully 32 bytes. closes #1990
* AddressSize
* fix tests
* fix max sizes
6 years ago
Jae Kwon
1660e30ffe
Fix general merkle keypath to start w/ last op's key ( #2733 )
* Fix general merkle keypath to start w/ last op's key
* Update CHANGELOG_PENDING.md
6 years ago
Zarko Milosevic
a83c268d7f
Fix spec ( #2736 )
6 years ago
Zarko Milosevic
c5905900eb
Simplify proposal msg ( #2735 )
* Align Proposal message with spec
* Update spec
6 years ago
Zarko Milosevic
7a03344480
Introduce EventValidBlock for informing peers about wanted block ( #2652 )
* Introduce EventValidBlock for informing peer about wanted block
* Merge with develop
* Add isCommit flag to NewValidBlock message
- Add test for the case of +2/3 Precommit from the previous round
6 years ago
Ismail Khoffi
a530352f61
Align Vote/Proposal fields with canonical order and fields ( #2730 )
* reorder fields
* add TestVoteString & update tests
* remove redundant info from Proposal.String()
* update spec
* revert changes on vote.String() -> more human friendly
6 years ago
yutianwu
60437953ac
[R4R] libs/log: add year to log format ( #2707 )
* add year to log format
* update documentation
6 years ago
Dev Ojha
56d7160606
Add ValidatorPubkeyTypes as a consensus param ( #2636 )
* Add ValidatorPubkeyTypes as a consensus param
Ref #2414
* update spec
* address anton's comment
* Switch to Validator and Validator Params
* Correct changelog entry
* Address bucky's comments!
* forgot to update changelog
* fix typo
* fix Params naming
6 years ago
Zach
cdc252b818
add fail-test file instead of dep, closes #2638 ( #2728 )
original author of this file is @ebuchman :
https://github.com/ebuchman/fail-test
6 years ago
Ethan Buchman
b24de1c01c
update changelog pending and readme ( #2725 )
6 years ago
Ismail Khoffi
b6d5b8b745
Update to amino 0.14.0 ( #2710 )
* WIP: update to amino 0.14.0
* update Changelog
* Update to latest amino version (v0.14.0)
6 years ago
Anton Kaliaev
a67ae81469
if some process locks a block in round 0, then 0 is valid proposal.POLRound in rounds > 0
This condition is really hard to get. Initially, lockedRound and
validRound are set to -1 as we start with round 0.
Refs #2702
6 years ago
zhangzheng
bbf15b3d09
tm-monitor: update health after we added / removed node ( #2694 )
Refs #2693
6 years ago
Ismail Khoffi
6643c5dd11
Catch up with amino 0.13.0 ( #2690 )
* catch up with amino changes in
https://github.com/tendermint/go-amino/pull/222
* WIP: update to amino v0.13.0
* update to fixed amino release
6 years ago
Jun Kimura
9795e12ef2
fix `RecoverAndLogHandler` not to call multiple writeheader ( #2688 )
6 years ago
Ethan Buchman
be929acd6a
Update to Amino v0.13.0-rc0 ( #2687 )
* types: test tm2pm on fully populated header
* upgrade for amino v0.13.0-rc0
* fix lint
* comment out final test
6 years ago
Ethan Buchman
fe1d59ab7b
Set protocol versions in NodeInfo from state ( #2686 )
* use types.NewValidator
* node: set p2p.ProtocolVersion from state, not globals
6 years ago
Ethan Buchman
f94eb42ebe
Version bump; Update Upgrading.md; linkify Changelog ( #2679 )
* version bump
* update UPGRADING.md
* add missing pr numbers to changelog pending
* linkify changelog
6 years ago
Ethan Buchman
9d62bd0ad3
crypto: use stdlib crypto/rand. ref #2099 ( #2669 )
* crypto: use stdlib crypto/rand. ref #2099
* comment
6 years ago
Ethan Buchman
30519e8361
types: first field in Canonical structs is Type ( #2675 )
* types: first field in Canonical structs is Type
* fix spec
6 years ago
Ethan Buchman
7c6519adbd
Bucky/changelog ( #2673 )
* update changelog, add authors script
* update changelog
* update changelog
6 years ago
Ethan Buchman
f536089f0b
types: dont use SimpleHashFromMap for header. closes #1841 ( #2670 )
* types: dont use SimpleHashFromMap for header. closes #1841
* changelog and spec
* comments
6 years ago
Ethan Buchman
746d137f86
p2p: Restore OriginalAddr ( #2668 )
* p2p: bring back OriginalAddr
* p2p: set OriginalAddr
* update changelog
6 years ago
Ethan Buchman
e798766a27
types: remove Version from CanonicalXxx ( #2666 )
6 years ago
Ethan Buchman
c3384e88e5
adr-016: update int64->uint64; add version to ConsensusParams ( #2667 )
6 years ago
Ethan Buchman
ed4ce5ff6c
ADR-016: Update ABCI Info method for versions ( #2662 )
* abci: update RequestInfo for versions
* abci: update ResponseInfo for versions
* compile fix
* fix test
* software_version -> version
* comment fix
* update spec
* add test
* comments and fix test
6 years ago
Anton Kaliaev
055d7adffb
add tm-abci python ABCI server (fork of py-abci) ( #2658 )
It utilises async IO -> greater performance.
6 years ago
Ethan Buchman
14c1baeb24
ADR-016: Add protocol Version to NodeInfo ( #2654 )
* p2p: add protocol Version to NodeInfo
* update node pkg. remove extraneous version files
* update changelog and docs
* fix test
* p2p: Version -> ProtocolVersion; more ValidateBasic and tests
6 years ago
Ethan Buchman
455d34134c
ADR-016: Add versions to Block and State ( #2644 )
* types: add Version to Header
* abci: add Version to Header
* state: add Version to State
* node: check software and state protocol versions match
* update changelog
* docs/spec: update for versions
* state: more tests
* remove TODOs
* remove empty test
6 years ago
Jack Zampolin
6a07f415e9
Change error output format for better SDK and Voyager UX ( #2648 )
* Change error output format
* Update tests
* 🤦
* apply suggestion
6 years ago
Anton Kaliaev
d20693fb16
install scripts: update go version, remove upgrade cmd ( #2650 )
* [install scripts] update go version, remove upgrade
- upgrading OS is out of scope of installation scripts
* add missing log statement
Refs https://github.com/tendermint/tendermint/pull/2642#discussion_r225786794
6 years ago