Anton Kaliaev
4ddf212286
Merge pull request #100 from tendermint/internal-randSource
...
common: no more relying on math/rand.DefaultSource
2017-12-19 12:54:54 -06:00
Emmanuel T Odeke
811dc071aa
protoc: "//nolint: gas" directive after pb generation ( #164 )
...
* protoc: "//nolint: gas" directive after pb generation
Fixes #138
Since we can't add package directives through the protoc
compiler, yet we need to "//nolint: gas" the Go generated
protobuf file, added a script whose purpose is to
go find the "package (\w+)$" declaration after go fmt
was run by protoc.
The competing solutions were more complex and can be
examined by visiting
https://github.com/tendermint/abci/issues/138#issuecomment-352226217
* simplify script
* rewrite script to work on Mac
2017-12-19 12:29:59 -06:00
Anton Kaliaev
66296fe11a
updates -> validator_set_updates
...
ConsensusParamChanges -> ConsensusParamUpdates
2017-12-19 12:13:45 -06:00
Ethan Buchman
4bca6bf6f5
fix test
2017-12-19 12:30:34 -05:00
Ethan Frey
960b25408f
Store LastConsensusHash in State as well
...
Update all BlockValidation that it matches the last state
2017-12-19 12:28:08 -05:00
Ethan Frey
45bc106de7
Updated lite tests to set ConsensusHash in header
2017-12-19 12:28:08 -05:00
Ethan Frey
d151e36ea8
Add ConsensusHash to header
2017-12-19 12:28:08 -05:00
Ethan Frey
56cada6a0c
Validate ConsensusParams returned from abci app
2017-12-19 12:28:08 -05:00
Ethan Frey
a0b2d77bef
Add hash to ConsensusParams
2017-12-19 12:28:08 -05:00
Ethan Frey
030fd00232
Added tests for applying consensus param changes
2017-12-19 12:28:08 -05:00
Ethan Frey
d21f39160f
Apply ConsensusParamChanges to state/State
2017-12-19 12:28:08 -05:00
Ethan Frey
4265a94bfe
Update EndBlock parameters
...
* Update abci dependencies
* Modify references from Diffs to Changes
* Fixes issues #924
2017-12-19 12:28:08 -05:00
Ethan Buchman
652d1e3de8
Merge pull request #979 from tendermint/934-node-fails-to-parse-seeds
...
strip protocol if defined
2017-12-19 12:26:32 -05:00
Ethan Buchman
b33cff4cb7
Merge pull request #981 from tendermint/977-wal-generator
...
enable logging for wal_generator and set timeout to 1 min
2017-12-19 12:25:58 -05:00
Ethan Buchman
e0fe84a856
Merge branch 'develop' into 977-wal-generator
2017-12-19 11:11:26 -05:00
Ethan Buchman
783ffdb7fd
Merge pull request #983 from tendermint/circle-testing
...
Circle testing
2017-12-19 11:09:22 -05:00
Ethan Buchman
cb3ac6987e
remove some debugs
2017-12-19 10:11:37 -05:00
Anton Kaliaev
5a83e58428
stop eventBus
2017-12-17 20:16:02 -06:00
Jae Kwon
4ce8448d7f
Nil keys are OK, deprecate BeginningKey/EndingKey ( #101 )
...
* Nil keys are OK, deprecate BeginningKey/EndingKey
2017-12-17 13:11:28 -08:00
Jae Kwon
aab2d70dd3
Sdk2 kvpair ( #102 )
...
* Canonical KVPair in common
* Simplify common/Bytes to just hex encode
2017-12-17 13:04:15 -08:00
Anton Kaliaev
843b10ed26
Merge pull request #157 from tendermint/linter-fix-v2
...
enable linter & make deterministic
2017-12-16 23:02:05 -06:00
Anton Kaliaev
dd7728c4c5
Merge pull request #161 from tendermint/fix-some-vet-issues
...
all: fix vet issues with build tags, formatting
2017-12-16 22:40:51 -06:00
Anton Kaliaev
3f02ab0ead
unidirectional channel
2017-12-16 22:20:07 -06:00
Anton Kaliaev
99c58fc561
enable logging for wal_generator and set timeout to 1 min
...
Refs #977
2017-12-16 21:59:10 -06:00
Ethan Buchman
a86df17ceb
crank city
2017-12-16 19:55:04 -05:00
Ethan Buchman
5d04ccbe51
excessive logging. update tmlibs for timer fix
2017-12-16 19:16:08 -05:00
Emmanuel Odeke
e3d244091d
cleanup requested from review by @melekes
2017-12-16 15:49:38 -07:00
Ethan Buchman
61dc357bb3
test/p2p/kill_all: longer timeout
2017-12-16 13:36:52 -05:00
Ethan Buchman
d7cb2f850d
more logs in p2p
2017-12-16 13:36:52 -05:00
Ethan Buchman
bfe0a4a8ac
more logging
2017-12-16 13:36:52 -05:00
Ethan Buchman
0ec7909ec3
more logging in p2p and consensus
2017-12-16 13:36:52 -05:00
Ethan Buchman
b5b912e2c4
Merge remote-tracking branch 'origin/977-wal-generator' into develop
2017-12-16 13:36:32 -05:00
Emmanuel Odeke
8638961f02
common: Rand* warnings about cryptographic unsafety
...
Lesson articulated by @jaekwon on why we need 80 bits
of entropy at least before we can think of cryptographic
safety. math/rand's seed is a max of 64 bits so can never
be cryptographically secure.
Also added some benchmarks for RandBytes
2017-12-15 22:41:36 -07:00
Ethan Buchman
e3bffd8fbd
readme
2017-12-16 00:04:06 -05:00
Ethan Buchman
9504a593e9
Merge pull request #980 from tendermint/fix-test-in-develop
...
add missing Timestamp to Votes
2017-12-15 22:11:47 -05:00
Anton Kaliaev
f8f28c8942
enable logging for wal_generator and set timeout to 1 min
...
Refs #977
2017-12-15 16:15:09 -06:00
Ethan Buchman
9226659413
Merge pull request #98 from tendermint/sdk2-iterator
...
Sdk2 iterator
2017-12-15 15:58:48 -05:00
Ethan Buchman
66b0e8fa2d
fix c level db iterator
2017-12-15 15:58:23 -05:00
Ethan Buchman
225eace316
dont run metalinter on circle ...
2017-12-15 15:14:48 -05:00
Anton Kaliaev
8fc7d63cf8
add missing Timestamp to Votes
...
Fixes:
```
panic: Panicked on a Sanity Check: can't encode times below 1970 [recovered]
panic: Panicked on a Sanity Check: can't encode times below 1970
goroutine 2042 [running]:
testing.tRunner.func1(0xc420e8c0f0)
/usr/local/go/src/testing/testing.go:711 +0x5d9
panic(0xcd9e20, 0xc420c8c270)
/usr/local/go/src/runtime/panic.go:491 +0x2a2
github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common.PanicSanity(0xcd9e20, 0xf8ddd0)
/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common/errors.go:26 +0x120
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-wire.WriteTime(0x0, 0x0, 0x0, 0x1306440, 0xc4201607e0, 0xc420e31658, 0xc420e31680)
/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-wire/time.go:19 +0x11e
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-wire.writeReflectBinary(0xdc9e40, 0xc4201fcf30, 0x199, 0x1317b80, 0xdc9e40, 0xc98451, 0x9, 0x0, 0xdc9e40, 0xc420ead9c0, ...)
/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-wire/reflect.go:525 +0x22f0
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-wire.writeReflectBinary(0xd25400, 0xc42000e2e8, 0x196, 0x1317b80, 0xd92d60, 0xc9a195, 0xa, 0x0, 0xcc8ce0, 0xc420164920, ...)
/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-wire/reflect.go:530 +0x21e7
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-wire.writeReflectBinary(0xcc8ce0, 0xc4209f95b8, 0x197, 0x1317b80, 0xcc8ce0, 0xc9a195, 0xa, 0x0, 0xcc8ce0, 0xc420164920, ...)
/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-wire/reflect.go:518 +0x2509
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-wire.writeReflectBinary(0xd873e0, 0xc4209f9580, 0x16, 0x1317b80, 0xd79400, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-wire/reflect.go:530 +0x21e7
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-wire.WriteBinary(0xd873e0, 0xc4209f9580, 0x1306440, 0xc4201607e0, 0xc420e31658, 0xc420e31680)
/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-wire/wire.go:80 +0x15f
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-wire.BinaryBytes(0xd873e0, 0xc4209f9580, 0x3, 0x8, 0xc420160798)
/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-wire/util.go:15 +0xb8
github.com/tendermint/tendermint/blockchain.(*BlockStore).SaveBlock(0xc4201342a0, 0xc420eac180, 0xc420130640, 0xc4209f9580)
github.com/tendermint/tendermint/blockchain/_test/_obj_test/store.go:192 +0x439
github.com/tendermint/tendermint/blockchain.TestBlockStoreSaveLoadBlock(0xc420e8c0f0)
/go/src/github.com/tendermint/tendermint/blockchain/store_test.go:128 +0x609
testing.tRunner(0xc420e8c0f0, 0xf20830)
/usr/local/go/src/testing/testing.go:746 +0x16d
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:789 +0x569
exit status 2
FAIL
```
2017-12-15 13:59:25 -06:00
Anton Kaliaev
c513649df4
strip protocol if defined
...
Fixes #934
2017-12-15 13:36:08 -06:00
Anton Kaliaev
a6911825b0
PanicCrisis is deprecated
2017-12-15 13:35:49 -06:00
Ethan Buchman
eddabab5e4
Merge pull request #965 from tendermint/573-handle-corrupt-wal-file
...
Handle corrupt WAL file
2017-12-15 14:33:16 -05:00
Ethan Buchman
3eee69de2d
Merge pull request #954 from tendermint/668-send-absent-validators
...
Send absent validators
2017-12-15 13:55:52 -05:00
Ethan Buchman
068d83bce8
Merge pull request #677 from tendermint/blockchain-test-store
...
blockchain: add tests for BlockStore
2017-12-15 13:33:55 -05:00
Anton Kaliaev
7f649ccf23
fixes from Frey's review
2017-12-15 12:21:15 -06:00
Anton Kaliaev
808b830942
add a unit test
...
Refs #668
2017-12-15 12:13:02 -06:00
Anton Kaliaev
d669816a1b
send absent validators in BeginBlock
...
Refs #668
2017-12-15 12:13:02 -06:00
Anton Kaliaev
e40689b9cc
PanicCrisis is deprecated
2017-12-15 11:59:45 -06:00
Anton Kaliaev
709cf18aef
add gofuzz test for consensus wal
2017-12-15 11:56:24 -06:00