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
2019-07-31 11:34:17 +02:00
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
2019-07-19 09:54:45 +04:00
2756be5a59
libs: Remove usage of custom Fmt, in favor of fmt.Sprintf ( #2199 )
...
* libs: Remove usage of custom Fmt, in favor of fmt.Sprintf
Closes #2193
* Fix bug that was masked by custom Fmt!
2018-08-10 09:25:57 +04:00
9018acde5f
tmlibs -> tendermint/libs
2018-07-02 14:58:07 -04:00
37ef5485b4
Add logs to lite/*; Fix rpc status to return consensus height, not blockstore height
2018-06-26 16:53:06 -07:00
bf0ff212b9
Refactor "lite" to handle delayed validator set changes.
...
Also, fix consensus liveness issue.
2018-06-25 17:12:25 -07:00
9ed296ae71
GetByHeight switches between linear & binary search on >=50 items
...
* GetByHeight will now switch to using binary search once
we have >=50 items.
* Feedback from @ebuchman to catch a missed spot where
we forgot about lazy sorting that the original code
assumed would always have sorted commits by height.
Added a lazy sorting routine here too.
A test as well to ensure that we always get the properly
sorted and last value.
2018-01-31 20:53:03 -07:00
2023115ff8
lite: TestCacheGetsBestHeight with GetByHeight and GetByHeightBinarySearch
...
Addressing PR review requests from @melekes and @ebuchman to
add a test that checks that the heights returned from both are
the same thus providing a perceptible equivalence of the code
linear range search vs binary range search code.
2018-01-31 20:52:12 -07:00
58c5df729b
Add ResultHash to header
2017-12-26 19:24:25 -05:00
45bc106de7
Updated lite tests to set ConsensusHash in header
2017-12-19 12:28:08 -05:00
922af7c405
int64 height
...
uint64 is considered dangerous. the details will follow in a blog post.
2017-12-01 19:04:53 -06:00
b3492356e6
uint64 height (Refs #911 )
2017-12-01 17:17:22 -05:00
12ae1bb5e5
Address comments
2017-11-27 16:23:56 +01:00
248f176c1f
Rename light to lite
2017-11-27 16:19:00 +01:00