75b78bfb72
panic on marshal/unmarshal failures for genesisDoc
2017-10-17 13:33:57 +04:00
6469e2ccca
save genesis doc in DB to prevent user errors
...
https://github.com/tendermint/tendermint/pull/676#discussion_r144411458
2017-10-16 10:51:58 +04:00
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
2017-10-16 10:34:02 +04:00
1971e149fb
ChainID() and Params() do not return errors
...
- remove state#GenesisDoc() method
2017-10-16 10:34:02 +04:00
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.
2017-10-16 10:34:01 +04:00
d56b44f3a5
all: no more anonymous imports
2017-10-04 16:40:45 -04:00
ddb3d8945d
p2p: allow listener with no external connection
2017-09-22 10:13:23 -04:00
756818f940
fixes from review
2017-09-21 21:44:36 -04:00
2131f8d330
some fixes from review
2017-09-21 17:21:20 -04:00
75b97a5a65
PrivValidatorFS is like old PrivValidator, for now
2017-09-21 16:46:31 -04:00
779c2a22d0
node: NewNode takes DBProvider and GenDocProvider
2017-09-21 15:54:33 -04:00
944ebccfe9
more PrivValidator interface
2017-09-21 15:51:20 -04:00
fd1b0b997a
PrivValidator interface
2017-09-21 15:51:20 -04:00
7dd3c007c7
Refactor priv_validator
...
Users can now just pass an object that implements the Signer interface.
2017-09-21 15:50:43 -04:00
83048fb2fe
Merge pull request #604 from tendermint/bugfix/ws-io-timeout
...
Biff up RPC WSClient
2017-08-25 17:59:34 -04:00
2fd8496bc1
correct handling of pings and pongs
...
server:
- always has read & write timeouts
- ping handler never blocks the reader (see A)
- sends regular pings to check up on a client
A:
at some point server write buffer can become full, so in order not to
block reads from a client (see
https://github.com/gorilla/websocket/issues/97 ), server may skip some
pongs. As a result, client may disconnect. But you either have to do
that or block the reader. There is no third way.
client:
- optional read & write timeouts
- optional ping/pong to measure latency
2017-08-10 17:53:49 -04:00
49278a7f9c
Merge pull request #579 from tendermint/feature/sync_status
...
Add fast-sync status to Status() call
2017-08-09 23:51:25 -04:00
37f1390473
CreateEmptyBlocks and CreateEmptyBlocksInterval
2017-08-08 16:22:37 -04:00
3444bee47f
fixes from review; use mempool.TxsAvailable() directly
2017-07-28 23:42:43 -04:00
124032e3e9
NoEmptyBlocks config option
2017-07-28 22:11:45 -04:00
4beac54bd9
no empty blocks
2017-07-28 22:11:45 -04:00
6f8d385dfa
fast sync status
2017-07-17 09:44:23 +03:00
05c0dfac12
First crack it providing fast-sync endpoint
2017-07-10 19:30:54 +02:00
b4ece65726
standardize key for errors (should be "err")
2017-06-14 12:50:49 +04:00
ee88272216
enable unsafe rpc routes in tests via flag
2017-05-26 14:20:23 -04:00
fc6611b2d9
[config] RPCConfig
2017-05-24 13:56:12 -04:00
fe87623674
Merge pull request #501 from tendermint/feature/493-per-module-log-levels
...
Feature/493 per module log levels
2017-05-16 23:33:21 +02:00
eb9ca23250
log whether node is a validator in each round
2017-05-16 14:01:52 +02:00
05a8204508
per module log levels (Refs #493 )
2017-05-16 13:57:28 +02:00
f8fdbe3dbc
changes as per Bucky's review
2017-05-13 16:22:51 +02:00
c9cd8de9c6
set logger
2017-05-13 10:25:00 +02:00
f803544195
new logging
2017-05-13 10:24:58 +02:00
edd7263f06
fixes from review
2017-05-05 12:25:53 -04:00
46151720f8
fix tests
2017-05-04 22:46:41 -04:00
6b059e0063
Accept relative paths in all configs, TODO: must SetRoot
2017-05-04 22:46:40 -04:00
604bf03f3a
Pulled out all config structs (except p2p.PeerConfig) into config package
2017-05-04 22:46:40 -04:00
7db7bbe464
node: ConfigFromViper
2017-05-04 22:43:55 -04:00
75b6c5215f
fewer structs. remove viper from consensus
2017-05-04 22:43:55 -04:00
d8fb226ec4
new config
2017-05-04 22:43:55 -04:00
95c74b2ccd
remove some more viper
2017-05-04 22:43:55 -04:00
f0e7f0acf8
remove viper from rpc except test
2017-05-04 22:43:55 -04:00
1fcc9dc654
remove viper from proxy
2017-05-04 22:39:22 -04:00
7c0f51e24b
remove viper from mempool
2017-05-04 22:39:22 -04:00
29c0e6e4f4
remove viper from blockchain and state
2017-05-04 22:39:21 -04:00
cc6dde96c1
rpc -> rpc/lib and rpc/tendermint -> rpc
2017-04-26 19:57:33 -04:00
fcf78a5da7
cleanup go-config/viper and some unnamed imports
2017-04-25 14:54:56 -04:00
cefb2bede0
adding viper
...
int
int
2017-04-25 13:42:22 -04:00
56c60fba23
go-p2p -> tendermint/p2p
2017-04-21 18:19:41 -04:00
9e82d132ce
go-rpc -> tendermint/rpc
2017-04-21 18:19:29 -04:00
d1926bcad1
use tmlibs
2017-04-21 18:12:54 -04:00