Marko
3e2751d274
lint: Enable Golint ( #4212 )
* Fix many golint errors
* Fix golint errors in the 'lite' package
* Don't export Pool.store
* Fix typo
* Revert unwanted changes
* Fix errors in counter package
* Fix linter errors in kvstore package
* Fix linter error in example package
* Fix error in tests package
* Fix linter errors in v2 package
* Fix linter errors in consensus package
* Fix linter errors in evidence package
* Fix linter error in fail package
* Fix linter errors in query package
* Fix linter errors in core package
* Fix linter errors in node package
* Fix linter errors in mempool package
* Fix linter error in conn package
* Fix linter errors in pex package
* Rename PEXReactor export to Reactor
* Fix linter errors in trust package
* Fix linter errors in upnp package
* Fix linter errors in p2p package
* Fix linter errors in proxy package
* Fix linter errors in mock_test package
* Fix linter error in client_test package
* Fix linter errors in coretypes package
* Fix linter errors in coregrpc package
* Fix linter errors in rpcserver package
* Fix linter errors in rpctypes package
* Fix linter errors in rpctest package
* Fix linter error in json2wal script
* Fix linter error in wal2json script
* Fix linter errors in kv package
* Fix linter error in state package
* Fix linter error in grpc_client
* Fix linter errors in types package
* Fix linter error in version package
* Fix remaining errors
* Address review comments
* Fix broken tests
* Reconcile package coregrpc
* Fix golangci bot error
* Fix new golint errors
* Fix broken reference
* Enable golint linter
* minor changes to bring golint into line
* fix failing test
* fix pex reactor naming
* address PR comments
5 years ago
Anton Kaliaev
3e1516b624
linters: enable stylecheck ( #4153 )
Refs #3262
5 years ago
Marko
a1eb2f6c6b
tm-cmn to tm-db ( #3850 )
* tm-cmn to tm-db
* go.mod changes
* go.mod changes
* more go.mod
* fix tm-db
* ci fix, pending change
5 years ago
Marko
816dfce8fe
libs: Remove db from tendermint in favor of tendermint/tm-cmn ( #3811 )
* Remove db from tendemrint in favor of tendermint/tm-cmn
- remove db from `libs`
- update dependancy, there have been no breaking changes in the updated deps
- https://github.com/grpc/grpc-go/releases
- https://github.com/golang/protobuf/releases
Signed-off-by: Marko Baricevic <marbar3778@yahoo.com>
* changelog add
* gofmt
* more gofmt
5 years ago
Yumin Xia
36d7180ca2
libs/db: close batch ( #3397 )
ClevelDB requires closing when WriteBatch is no longer needed, https://godoc.org/github.com/jmhodges/levigo#WriteBatch.Close
Fixes the memory leak in https://github.com/cosmos/cosmos-sdk/issues/3842
6 years ago
Yumin Xia
b021f1e505
libs/db: close batch ( #3397 )
ClevelDB requires closing when WriteBatch is no longer needed, https://godoc.org/github.com/jmhodges/levigo#WriteBatch.Close
Fixes the memory leak in https://github.com/cosmos/cosmos-sdk/issues/3842
6 years ago
Anton Kaliaev
b6a510a3e7
make ineffassign linter pass ( #3386 )
Refs #3262
This fixes two small bugs:
1) lite/dbprovider: return `ok` instead of true in parse* functions. It's weird that we're ignoring `ok` value before.
2) consensus/state: previously because of the shadowing we almost never output "Error with msg". Now we declare both `added` and `err` in the beginning of the function, so there's no shadowing.
6 years ago
Ethan Buchman
de5a6010f0
fix DynamicVerifier for large validator set changes ( #3171 )
* base verifier: bc->bv and check chainid
* improve some comments
* comments in dynamic verifier
* fix comment in doc about BaseVerifier
It requires the validator set to perfectly match.
* failing test for #2862
* move errTooMuchChange to types. fixes #2862
* changelog, comments
* ic -> dv
* update comment, link to issue
6 years ago
Jae Kwon
416d143bf7
R4R: Swap start/end in ReverseIterator ( #2913 )
* Swap start/end in ReverseIterator
* update CHANGELOG_PENDING
* fixes from review
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
Jae Kwon
e719a93d1d
Addressed review for #1815 except those marked as 'TODO make issue'
6 years ago
Ethan Buchman
f6705f02c7
fixes post merge
6 years ago
Ethan Buchman
9018acde5f
tmlibs -> tendermint/libs
6 years ago
Jae Kwon
b51ed132f7
Fix test/p2p/pex circle tests; update consensus
6 years ago
Jae Kwon
37ef5485b4
Add logs to lite/*; Fix rpc status to return consensus height, not blockstore height
6 years ago
Jae Kwon
c3296f2e01
Garbage collect DBProvider (unoptimized); Certifier creation takes a client
6 years ago
Jae Kwon
242a6037e8
Fixes from review
6 years ago
Jae Kwon
bf0ff212b9
Refactor "lite" to handle delayed validator set changes.
Also, fix consensus liveness issue.
7 years ago