Zarko Milosevic and GitHub
cf24489764
Merge pull request #76 from tendermint/ismail/fix-link-light
...
Fix link in readme
2020-01-24 15:31:11 +01:00
Ismail Khoffi and GitHub
576e40eabd
Fix link in readme
...
./light -> ./light-client
2020-01-24 15:17:04 +01:00
696e13e1ff
adr: ADR-051: Double Signing Risk Reduction ( #4262 )
...
* Add adr-051 to docs
* add details
* Update docs/architecture/adr-051-double-signing-protection-with-tendermint-mode.md
Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com >
* rename adr-051 for only double singing protection
* remove contents about tendermint mode
* change title to Double Signing Rist Reduction
* rename adr md file
* add a adr link to ToC
Co-authored-by: b-harvest <38277329+dlguddus@users.noreply.github.com >
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com >
2020-01-24 11:02:35 +04:00
Zarko Milosevic and GitHub
206139f384
Merge pull request #75 from tendermint/bucky/lite-light
...
lite->light
2020-01-23 23:28:51 +01:00
Ethan Buchman
603364bdaa
lite->light
2020-01-23 09:22:40 -08:00
Zarko Milosevic and GitHub
033a0cb53f
Merge pull request #61 from tendermint/zm_lite_client_algo
...
Update specification of light client algorithm to align with the code
2020-01-23 14:50:49 +01:00
Zarko Milosevic
026fddee4f
Aligh the correctness arguments with the pseudocode changes
2020-01-23 14:49:45 +01:00
Zarko Milosevic and GitHub
dc542068ae
Merge pull request #73 from tendermint/bucky/light-reorg
...
Move light specs to their own dir, add readme and diagram
2020-01-23 11:14:38 +01:00
Marko and GitHub
082e211ef9
docs: minor doc fixes ( #4335 )
...
* docs: minor doc fixes
- minor doc fixes that i ran into while reading things
- test if we have github actions
Signed-off-by: Marko Baricevic <marbar3778@yahoo.com >
* no github actions yet
* add with
* revert and change wording
v0.33.0-dev1
2020-01-23 08:57:42 +01:00
Ethan Buchman
c35d6e706f
update readme
2020-01-22 13:52:54 -08:00
Ethan Buchman
bd2f41bf79
fix image
2020-01-22 13:49:09 -08:00
Ethan Buchman
d1bd98d5e0
detection TODO
2020-01-22 13:19:24 -08:00
Ethan Buchman
035838901e
add diagram
2020-01-22 13:17:16 -08:00
Ethan Buchman
e342c21336
add redirects
2020-01-22 13:10:08 -08:00
Ethan Buchman
eb9e1f961c
titles
2020-01-22 13:06:49 -08:00
Ethan Buchman
f26eb4ee89
light client dir and readmes
2020-01-22 12:55:31 -08:00
Anton Kaliaev and GitHub
1905ef7ca8
lite2: improve auto update ( #4334 )
...
* lite2: advance to latest header
without any exponential steps
rename autoUpdate to autoUpdateRoutine
* lite2: wait in Cleanup until goroutines finished running
2020-01-22 20:26:47 +04:00
Anton Kaliaev and GitHub
f95409e070
lite2: move AutoClient into Client ( #4326 )
...
* lite2: move AutoClient into Client
Most of the users will want auto update feature, so it makes sense to
move it into the Client itself, rather than having a separate
abstraction (it makes the code cleaner, but introduces an extra thing
the user will need to learn).
Also, add `FirstTrustedHeight` func to Client to get first trusted height.
* fix db store tests
* separate examples for auto and manual clients
* AutoUpdate tries to update to latest state
NOT 1 header at a time
* fix errors
* lite2: make Logger an option
remove SetLogger func
* fix lite cmd
* lite2: make concurrency assumptions explicit
* fixes after my own review
* no need for nextHeightFn
sequence func will download intermediate headers
* correct comment
2020-01-22 15:19:03 +04:00
5f2f97548f
adr: ADR-052: Tendermint Mode ( #4302 )
...
* Separate ADR Tendermint Mode from ADR-051
* Update docs/architecture/adr-052-tendermint-mode.md
Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com >
* Apply suggestions from code review
Co-Authored-By: Marko <marbar3778@yahoo.com >
* Apply suggestions from code review
Co-Authored-By: Marko <marbar3778@yahoo.com >
* remove line of mode info of rpc
* Add link to ADR table of contents
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com >
Co-authored-by: Marko <marbar3778@yahoo.com >
Fullnode mode : fullnode mode does not have any capability to participate on consensus
Validator mode : this mode is exactly same as existing state machine behavior. sync without voting on consensus, and participate consensus when fully synced
Seed mode : lightweight seed mode only for maintain an address book, p2p like TenderSeed
Separate ADR Tendermint Mode from ADR-051 #4262
2020-01-22 11:03:05 +04:00
Anton Kaliaev and GitHub
2d510d2f27
rpc: PR#4320 follow up ( #4323 )
...
* rpc: update urls to rpc website
* rpc: check blockMeta is not nil in Commit
Refs #4319
2020-01-20 14:41:26 +04:00
Erik Grinaker and GitHub
9cbfe7950d
tests: bind test servers to 127.0.0.1 ( #4322 )
2020-01-18 19:01:18 +01:00
Marko and GitHub
b50cb26664
rpc: check nil blockmeta ( #4320 )
...
* rpc: check nil blockmeta
- fixes #4319
- check if block meta is nil
Signed-off-by: Marko Baricevic <marbar3778@yahoo.com >
* add changelog entry
2020-01-17 18:32:31 +01:00
dependabot-preview[bot] and Anton Kaliaev
a3dc82b10f
deps: bump github.com/spf13/viper from 1.6.1 to 1.6.2 ( #4318 )
...
Bumps [github.com/spf13/viper](https://github.com/spf13/viper ) from 1.6.1 to 1.6.2.
- [Release notes](https://github.com/spf13/viper/releases )
- [Commits](https://github.com/spf13/viper/compare/v1.6.1...v1.6.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-17 16:12:14 +04:00
Marko and GitHub
88ac31f875
docs: update theme version ( #4315 )
...
Signed-off-by: Marko Baricevic <marbar3778@yahoo.com >
2020-01-17 11:31:44 +01:00
Marko and GitHub
5aa209a156
Rc1 0.33 ( #4306 )
...
* rc for 0.33
* address some pr comments
* some adds to upgrade.md
* undo version
2020-01-15 12:43:13 +01:00
dependabot-preview[bot] and Marko
32bb813b0a
build(deps): bump github.com/pkg/errors from 0.9.0 to 0.9.1 ( #4310 )
...
Bumps [github.com/pkg/errors](https://github.com/pkg/errors ) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/pkg/errors/releases )
- [Commits](https://github.com/pkg/errors/compare/v0.9.0...v0.9.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-15 12:21:35 +01:00
Anton Kaliaev and GitHub
7e3c66e28f
docs: add link for installing Tendermint ( #4307 )
...
* docs: add link for installing Tendermint
to Go guides
Refs #4286
* remind users to checkout latest release
when installing from github source
2020-01-15 14:51:58 +04:00
Marko and GitHub
a3a09285de
changelog: add 0.32.9 changelog to master ( #4305 )
...
Signed-off-by: Marko Baricevic <marbar3778@yahoo.com >
2020-01-13 19:20:28 +01:00
Marko and GitHub
6b71b928be
dep: update tm-db to 0.4.0 ( #4289 )
...
* dep: update tm-db to 0.4.0
- update 0.4.0 as it is a breaking change and cannot be handled by depndabot
Signed-off-by: Marko Baricevic <marbar3778@yahoo.com >
* more work towards error handling
* error and emtpy bytes handling
* work on tests
* add changelog entry, change some error handling
* address some pr comments
* panic in a few more places
* move error higher up
* redo some error handling
* fix some bz == nil to len(bz) == 0
* change statebytes
2020-01-13 18:45:16 +01:00
Anton Kaliaev and GitHub
faf783331d
cmd/lite: switch to new lite2 package ( #4300 )
...
* cmd/lite: switch to new lite2 package
* update changelog
* shorten the trusting period explanation
2020-01-13 14:49:53 +04:00
dependabot-preview[bot] and Anton Kaliaev
5f0f54f239
deps: bump github.com/pkg/errors from 0.8.1 to 0.9.0 ( #4301 )
...
Bumps [github.com/pkg/errors](https://github.com/pkg/errors ) from 0.8.1 to 0.9.0.
- [Release notes](https://github.com/pkg/errors/releases )
- [Commits](https://github.com/pkg/errors/compare/v0.8.1...v0.9.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-13 14:33:57 +04:00
86adc2c89f
lite: follow up from #3989 ( #4209 )
...
* rename adjusted to adjacent
Refs https://github.com/tendermint/tendermint/pull/3989#discussion_r352140829
* rename ErrTooMuchChange to ErrNotEnoughVotingPowerSigned
Refs https://github.com/tendermint/tendermint/pull/3989#discussion_r352142785
* verify commit is properly signed
* remove no longer trusted headers
* restore trustedHeader and trustedNextVals
* check trustedHeader using options
Refs https://github.com/tendermint/tendermint/pull/4209#issuecomment-562462165
* use correct var when checking if headers are adjacent
in bisection func
+ replace TODO with a comment
https://github.com/tendermint/tendermint/pull/3989#discussion_r352125455
* return header in VerifyHeaderAtHeight
because that way we avoid DB call
+ add godoc comments
+ check if there are no headers yet in AutoClient
https://github.com/tendermint/tendermint/pull/3989#pullrequestreview-315454506
* TestVerifyAdjacentHeaders: add 2 more test-cases
+ add TestVerifyReturnsErrorIfTrustLevelIsInvalid
* lite: avoid overflow when parsing key in db store!
* lite: rename AutoClient#Err to Errs
* lite: add a test for AutoClient
* lite: fix keyPattern and call itr.Next in db store
* lite: add two tests for db store
* lite: add TestClientRemovesNoLongerTrustedHeaders
* lite: test Client#Cleanup
* lite: test restoring trustedHeader
https://github.com/tendermint/tendermint/pull/4209#issuecomment-562462165
* lite: comment out unused code in test_helpers
* fix TestVerifyReturnsErrorIfTrustLevelIsInvalid after merge
* change defaultRemoveNoLongerTrustedHeadersPeriod
and add docs
* write more doc
* lite: uncomment testable examples
* use stdlog.Fatal to stop AutoClient tests
* make lll linter happy
* separate errors for 2 cases
- the validator set of a skipped header cannot be trusted, i.e. <1/3rd
of h1 validator set has signed (new error, something like
ErrNewValSetCantBeTrusted)
- the validator set is trusted but < 2/3rds has signed
(ErrNewHeaderCantBeTrusted)
https://github.com/tendermint/tendermint/pull/4209#discussion_r360331253
* remove all headers (even the last one) that are outside
of the trusting period. By doing this, we avoid checking the
trustedHeader's hash in checkTrustedHeaderUsingOptions (case #1 ).
https://github.com/tendermint/tendermint/pull/4209#discussion_r360332460
* explain restoreTrustedHeaderAndNextVals better
https://github.com/tendermint/tendermint/pull/4209#discussion_r360602328
* add ConfirmationFunction option
for optionally prompting for user input Y/n before removing headers
Refs https://github.com/tendermint/tendermint/pull/4209#discussion_r360602945
* make cleaning optional
https://github.com/tendermint/tendermint/pull/4209#discussion_r364838189
* return error when user refused to remove headers
* check for double votes in VerifyCommitTrusting
* leave only ErrNewValSetCantBeTrusted error
to differenciate between h2Vals.VerifyCommit and
h1NextVals.VerifyCommitTrusting
* fix example tests
* remove unnecessary if condition
https://github.com/tendermint/tendermint/pull/4209#discussion_r365171847
It will be handled by the above switch.
* verifyCommitBasic does not depend on vals
Co-authored-by: Marko <marbar3778@yahoo.com >
2020-01-13 11:56:48 +04:00
Anton Kaliaev and GitHub
db235c8df0
cs: check if cs.privValidator is nil ( #4295 )
...
before getting its address in recordMetrics
Refs https://github.com/tendermint/tendermint/pull/4294#discussion_r364347586
2020-01-09 16:25:59 +04:00
Greg Szabo and Anton Kaliaev
15aa8d82b3
rpc/client: add basic authentication ( #4291 )
...
Closes #4248
2020-01-09 13:42:30 +04:00
Zarko Milosevic
146e251892
Address reviewer comment's. Intermediate commit
2020-01-08 17:49:32 +01:00
6d91c1faf4
evidence: introduce time.Duration to evidence params ( #4254 )
...
* evidence: introduce time.Duration to evidence params
- add time.duration to evidence
- this pr is taking pr #2606 and updating it to use both time and height
- closes #2565
Signed-off-by: Marko Baricevic <marbar3778@yahoo.com >
* fix testing and genesis cfg in signer harness
* remove debugging fmt
* change maxageheight to maxagenumblocks, rename other things to block instead of height
* further check of duration
* check duration to not send peers outdated evidence
* change some lines, onward and upward
* refactor evidence package
* add a changelog pending entry
* make mockbadevidence have time and use it
* add what could possibly be called a test case
* remove mockbadevidence and mockgoodevidence in favor of mockevidence
* add a comment for err that is returned
* add a changelog for removal of good & bad evidence
* add a test for adding evidence
* fix test
* add ev to types in testcase
* Update evidence/pool_test.go
Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com >
* Update evidence/pool_test.go
Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com >
* fix tests
* fix linting
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com >
2020-01-08 10:46:37 +01:00
Marko and Anton Kaliaev
d7f4ce30ca
metrics: only increase last_signed_height if commitSig for block ( #4283 )
...
- follow up to #4263
- when a commit is nil, then it should be counted as a missed commit
Signed-off-by: Marko Baricevic marbar3778@yahoo.com
2020-01-07 12:09:26 +04:00
Peter Mrekaj and Anton Kaliaev
8f5d58f32e
rpc: modify New* functions to return error ( #4274 )
...
The New* client functions return an error instead
of panicking when the remote address is invalid.
Fixes #3953
2020-01-07 10:07:03 +04:00
Zarko Milosevic
7130c2e68c
Removing Store from API and providing end-to-end timing guarantees
2020-01-06 18:30:59 +01:00
7be74c73b7
rpc: add method block_by_hash ( #4257 )
...
* added RPC method block_by_hash
* created hash => height
* changes typings
* block_by_hash changes
* Update store/store.go
Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com >
* Update store/store.go
Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com >
* Update store/store.go
Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com >
* Update store/store.go
Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com >
Co-authored-by: Marko <marbar3778@yahoo.com >
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com >
2020-01-06 18:47:18 +04:00
dependabot-preview[bot] and Anton Kaliaev
55410593d0
deps: bump github.com/go-logfmt/logfmt from 0.4.0 to 0.5.0 ( #4282 )
...
Bumps [github.com/go-logfmt/logfmt](https://github.com/go-logfmt/logfmt ) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/go-logfmt/logfmt/releases )
- [Changelog](https://github.com/go-logfmt/logfmt/blob/master/CHANGELOG.md )
- [Commits](https://github.com/go-logfmt/logfmt/compare/v0.4.0...v0.5.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-06 16:41:58 +04:00
279482ce99
crypto: fix sr25519 from raw import ( #4272 )
...
* fix raw import sr25519
* add sr25519 to multisig codec
* bump go-schnorrkel
Co-authored-by: Marko <marbar3778@yahoo.com >
Fixes sr25519 pubkey generation and signing when importing from raw bytes
2020-01-03 12:25:32 +04:00
Anton Kaliaev and GitHub
7f655d8e9e
rpc: pass outCapacity to eventBus#Subscribe when subscribing using a l… ( #4279 )
...
* pass `outCapacity` to `eventBus#Subscribe` when subscribing using a local client
Fixes #4256
* use outCap directly
2020-01-03 12:10:36 +04:00
Marko and GitHub
ffe5dff8d9
make: add back tools cmd ( #4281 )
...
previous PR seems to have deleted the tools cmd, this adds it back in
Signed-off-by: Marko Baricevic <marbar3778@yahoo.com >
2020-01-02 20:48:01 +01:00
Zarko Milosevic
4a9eb1f1ac
Intermediate commit (aligning spec with the code)
2019-12-31 13:31:35 +01:00
Zarko Milosevic
0adde9d415
Separating algorithm from proofs
2019-12-26 13:11:01 +01:00
Zarko Milosevic
ee0cc537b8
Addressing reviewer's comments
2019-12-25 13:58:27 +01:00
Anton Kaliaev and GitHub
7d7b47a39a
cmd/debug: execute p.Signal only when p is not nil ( #4271 )
...
* cmd/debug: execute p.Signal when p is not nil
https://github.com/tendermint/tendermint/pull/4266#discussion_r360015827
* replace else with else if
2019-12-22 22:42:40 +04:00
Marko and GitHub
22280400a6
docs: link fixes in readme ( #4268 )
...
- fixed some links in the readme
- deleted some unused things from themakefile
Signed-off-by: Marko Baricevic <marbar3778@yahoo.com >
2019-12-21 20:48:34 +01:00
Marko and GitHub
a18380901f
test: branch for fix of ci ( #4266 )
...
* test:
- testing replacing syscall with os.FindProces
Signed-off-by: Marko Baricevic <marbar3778@yahoo.com >
* address pr comments
2019-12-20 11:42:42 +01:00