Anton Kaliaev
a52cdbfe43
extract tags from DeliverTx/Result
and send them along with predefined
7 years ago
Adrian Brink
782a836db0
Cleanup of code and code docs
This cleans up some of the code in the state package
7 years ago
Anton Kaliaev
716364182d
[state] expose ChainID and Params
```
jaekwon
Yeah we should definitely expose ChainID.
ConsensusParams is small enough, we can just write it.
```
https://github.com/tendermint/tendermint/pull/676#discussion_r144123203
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
Zach Ramsay
d56b44f3a5
all: no more anonymous imports
7 years ago
Ethan Buchman
779c2a22d0
node: NewNode takes DBProvider and GenDocProvider
7 years ago
Adrian Brink
870a98ccc3
Last fixes
7 years ago
Adrian Brink
8eda3efa28
Cleanup lines to fit within 72 characters
7 years ago
Adrian Brink
2a6e71a753
Reformat tests to extract common setup
7 years ago
Ethan Buchman
fae0603413
more fixes from review
7 years ago
Ethan Buchman
9deb647303
fixes from review
7 years ago
Ethan Buchman
78446fd99c
state: persist validators
7 years ago
Anton Kaliaev
f803544195
new logging
8 years ago
Ethan Buchman
46151720f8
fix tests
8 years ago
Ethan Buchman
4982cb4d1f
fix tests for state and mempool
8 years ago
Ethan Buchman
d1926bcad1
use tmlibs
8 years ago
Ethan Buchman
5109746b1c
Handshake uses ApplyBlock, no ConsensuState
8 years ago
Ethan Buchman
4360c360a4
move handshake to state, use Handshaker, more tests
8 years ago
Jae Kwon
e12f9d10e7
Bare consensus refactor
9 years ago
Ethan Buchman
e4f0e2b399
update namereg with longer names, more allowed chars
9 years ago
Ethan Buchman
586498331b
fix suicide
9 years ago
Jae Kwon
5bf0040f14
Parts -> PartsHeader; *_parts -> *_parts_header in sign_bytes
9 years ago
Jae Kwon
b96fd8a031
Beginning of complete merkle proofs
9 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
9e1794eaea
Fixed tests
10 years ago
Jae Kwon
01b5540ffe
consensus/state is 2-step asynchronous
10 years ago
Ethan Buchman
6eb8386c7c
fixes for chain id in nametx sign functions
10 years ago
Ethan Buchman
37a8a6cd65
remove name fix
10 years ago
Ethan Buchman
77ff09e173
namereg cleanup, tests
10 years ago
Ethan Buchman
cff6bcfb31
copy entry on get, use strings for name/data, uint64 for expires
10 years ago
Ethan Buchman
8631d5085e
name reg
10 years ago
Ethan Buchman
2045aee9cd
pass chainID through sign interfaces
10 years ago
Ethan Buchman
8a2d9525f0
network > chain_id, put in genesis.json
10 years ago
Ethan Buchman
d43c776e84
add bonder's signature to BondTx
10 years ago
Jae Kwon
489bf767cb
importing tendermint/config/tendermint_test applies the test config
10 years ago
Jae Kwon
75ef479547
Config is passed into each module. Remove tendermint/confer
10 years ago
Jae Kwon
85c8850ac2
Config names have no dots, are under_scored.
10 years ago
Ethan Buchman
65f669160f
more fixes from review
10 years ago
Ethan Buchman
34098edb93
state: fireEvents flag on ExecTx and fixes for GetAccount
10 years ago
Jae Kwon
13b6508ecd
Package import path change
10 years ago
Ethan Buchman
60f166e823
tendermint2
10 years ago
Jae Kwon
79304b0dd3
Create BlockCache and TxCache for performance.
10 years ago
Jae Kwon
08a83aa9fb
Reactors can be stopped or started at any time.
10 years ago
Jae Kwon
0237d284cc
Channel bytes are spelled fully, "XXXChannel"
10 years ago
Jae Kwon
87e1f76324
tendermint/block -> tendermint/types and tendermint/blockchain
10 years ago
Ethan Buchman
9c4692c071
remove gas price and dont run txs before they come in a block
10 years ago
Ethan Buchman
f384d10a05
block/state: gas price for block and tx
10 years ago
Matthew Wampler-Doty
f03547007a
App -> App()
10 years ago
Jae Kwon
249ae38068
test bondTx
10 years ago