Ethan Buchman
cd0fd06b0d
update for sdk2 libs. need to fix kv test
NOTE we only updating for tmlibs and abci
7 years ago
Adrian Brink
a30315276b
Formatting and documentation
7 years ago
Emmanuel Odeke
2da5299924
blockchain: less fragile and involved tests for blockstore
With feedback from @ebuchman , to make the tests nicer
and less fragile.
7 years ago
Emmanuel Odeke
05f30b3e28
blockchain: updated store docs/comments from review
7 years ago
Ethan Buchman
116a61beb1
blockchain: update store comments
7 years ago
Emmanuel Odeke
8c86bb8024
blockchain: add tests and more docs for BlockStore
Add tests to test store, to the fullest reasonable extent for
paths that can taken by input arguments altering internal behavior,
as well as by mutating content in the DB.
7 years ago
Anton Kaliaev
922af7c405
int64 height
uint64 is considered dangerous. the details will follow in a blog post.
7 years ago
Anton Kaliaev
b3492356e6
uint64 height (Refs #911 )
7 years ago
Zach Ramsay
d7cb291fb2
errcheck; sort some stuff out
7 years ago
Zach Ramsay
46ccbcbff6
linting: apply 'gofmt -s -w' throughout
7 years ago
Ethan Buchman
2802a06a08
blockchain/store: comment about panics
7 years ago
Anton Kaliaev
1971e149fb
ChainID() and Params() do not return errors
- remove state#GenesisDoc() method
7 years ago
Emmanuel Odeke
7939d62ef0
all, state: unexpose GenesisDoc, ChainID fields make them accessor methods
Fixes #671
Unexpose GenesisDoc and ChainID fields to avoid them being
serialized to the DB on every block write/state.Save()
A GenesisDoc can now be alternatively written to the state's
database, by serializing its JSON as a value of key "genesis-doc".
There are now accessors and a setter for these attributes:
- state.GenesisDoc() (*types.GenesisDoc, error)
- state.ChainID() (string, error)
- state.SetGenesisDoc(*types.GenesisDoc)
This is a breaking change since it changes how the state's
serialization and requires that if loading the GenesisDoc entirely
from the database, you'll need to set its value in the database
as the GenesisDoc's JSON marshaled bytes.
7 years ago
Ethan Buchman
d1926bcad1
use tmlibs
8 years ago
Ethan Buchman
99b068b313
BlockMeta uses BlockID
8 years ago
Ethan Buchman
c9698e4848
fixes from review
8 years ago
Ethan Buchman
b2376058a1
blockchain: thread safe store.Height()
8 years ago
Jae Kwon
6f88d04ac4
call db.SetSync when necessary
8 years ago
Ethan Buchman
655b6300f5
val set changes
8 years ago
Jae Kwon
f17c4c1d57
s/Validation/Commit/g
9 years ago
Jae Kwon
d69b5c5ab6
Conform to go-wire 1.0
9 years ago
Jae Kwon
c4ed55d801
Refactor to move common libraries out of project
9 years ago
Jae Kwon
3be3647dc8
tendermint/binary -> tendermint/wire
10 years ago
Ethan Buchman
8e50bf15de
panic wrapper functions
10 years ago
Ethan Buchman
a7ecdd10de
Merge from panic branch
10 years ago
Jae Kwon
9965dd5de6
uint* to int* whereever appropriate; https://www.reddit.com/r/golang/comments/2q5vdu/int_vs_uint/
10 years ago
Jae Kwon
9b96e2e171
ProposalPOLRound...
10 years ago
Jae Kwon
7752405945
Draft of consensus/reactor refactor.
10 years ago
Jae Kwon
01b5540ffe
consensus/state is 2-step asynchronous
10 years ago
Jae Kwon
13b6508ecd
Package import path change
10 years ago
Ethan Buchman
60f166e823
tendermint2
10 years ago
Jae Kwon
08a83aa9fb
Reactors can be stopped or started at any time.
10 years ago
Jae Kwon
87e1f76324
tendermint/block -> tendermint/types and tendermint/blockchain
10 years ago
Jae Kwon
135894ea88
Dot import -> named import
Changed modulename_ to short module names
Also removed Unreader, replaced with PrefixdReader in select locations
10 years ago
Jae Kwon
4a81b06b6e
Send SeenValidation to peer & use for proposals when we don't have LastCommits due to reboot
10 years ago
Jae Kwon
b25b61438d
blockchain & block rpc handlers
10 years ago
Jae Kwon
0bfb389b35
change logger to log15
10 years ago
Jae Kwon
5bace5cce8
Unreader to unread bytes
10 years ago
Jae Kwon
62ff48c02b
Documented Block, some renames
10 years ago
Jae Kwon
61d1635085
Fixed tests
10 years ago
Jae Kwon
83d313cbe5
Refactor Tx, Validator, and Account structure
10 years ago
Jae Kwon
8718bd52a4
made ValidatorSet.Hash deterministic; fix off-by-1 bugs
10 years ago
Jae Kwon
5d1bdc6b1a
Don't send bitarrays, just send height/round/type/index.
10 years ago
Jae Kwon
08d1b50570
Store BlockParts && also Validation on its own.
10 years ago
Jae Kwon
9ea504030e
pretty print ConsensusState
10 years ago
Jae Kwon
8e452aa0d2
fixed algorithm
10 years ago
Jae Kwon
5dfa2ecebb
share block parts when we're the proposer
10 years ago
Jae Kwon
e53b148acf
refactor from Binary centric model to global method model
10 years ago
Jae Kwon
d300a67bb1
saving development state...
11 years ago