0ec7909ec3
more logging in p2p and consensus
2017-12-16 13:36:52 -05:00
b5b912e2c4
Merge remote-tracking branch 'origin/977-wal-generator' into develop
2017-12-16 13:36:32 -05:00
9504a593e9
Merge pull request #980 from tendermint/fix-test-in-develop
...
add missing Timestamp to Votes
2017-12-15 22:11:47 -05:00
f8f28c8942
enable logging for wal_generator and set timeout to 1 min
...
Refs #977
2017-12-15 16:15:09 -06:00
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
c513649df4
strip protocol if defined
...
Fixes #934
2017-12-15 13:36:08 -06:00
a6911825b0
PanicCrisis is deprecated
2017-12-15 13:35:49 -06:00
eddabab5e4
Merge pull request #965 from tendermint/573-handle-corrupt-wal-file
...
Handle corrupt WAL file
2017-12-15 14:33:16 -05:00
3eee69de2d
Merge pull request #954 from tendermint/668-send-absent-validators
...
Send absent validators
2017-12-15 13:55:52 -05:00
068d83bce8
Merge pull request #677 from tendermint/blockchain-test-store
...
blockchain: add tests for BlockStore
2017-12-15 13:33:55 -05:00
7f649ccf23
fixes from Frey's review
2017-12-15 12:21:15 -06:00
808b830942
add a unit test
...
Refs #668
2017-12-15 12:13:02 -06:00
d669816a1b
send absent validators in BeginBlock
...
Refs #668
2017-12-15 12:13:02 -06:00
e40689b9cc
PanicCrisis is deprecated
2017-12-15 11:59:45 -06:00
709cf18aef
add gofuzz test for consensus wal
2017-12-15 11:56:24 -06:00
e57cad6c3f
correct maxMsgSizeBytes
2017-12-15 11:42:53 -06:00
4f94caa1b9
explain what to do in case of truncation [ci skip]
2017-12-15 11:11:21 -06:00
78a682e4b6
blockchain: test fixes
2017-12-15 12:07:48 -05:00
21d030dbfb
Merge pull request #975 from tendermint/974-fix-test-in-develop
...
add missing Timestamp to Vote
2017-12-14 09:22:11 -05:00
eb6d412a82
Add tests to protobuf objects for pr coverage
2017-12-14 09:35:33 +01:00
9c5e1a824d
Updated naming of EndBlock parameters
...
* Changes -> Updates for validators
* ConsensusParams.XXXParams -> ConsensusParams.XXX
* As per feedback from Jae on PR
2017-12-14 09:27:20 +01:00
72da553ed9
add missing Timestamp to Vote
...
Fixes #974
2017-12-13 22:24:06 -06:00
b78606d94f
Merge pull request #967 from tendermint/feature/total-tx
...
Add TotalTx to block header
2017-12-13 17:09:48 -06:00
a6f719a402
Add tests for block validation
2017-12-13 19:54:16 +01:00
e0fbd148ef
Merge pull request #958 from tendermint/pex-on-by-default
...
activate PEX reactor by default
2017-12-13 12:52:17 -06:00
2f91289880
update changelog [ci skip]
2017-12-13 12:26:12 -06:00
462b755a60
activate PEX reactor by default
2017-12-13 12:25:48 -06:00
0a2ecaa393
Merge pull request #953 from tendermint/feature/time-fields
...
Add Timestamp to Proposal/Vote
2017-12-13 12:18:55 -06:00
895e14d6bd
Update Diffs to Changes, fix README
2017-12-13 17:57:43 +01:00
25f6f6518c
Update the ResponseEndBlock values
...
* Rename diffs -> changes
* Add consensus_param_changes
For context, see:
https://github.com/tendermint/tendermint/issues/924
https://github.com/tendermint/tendermint/issues/952
2017-12-13 17:50:24 +01:00
dedf03bb81
Add TotalTx to block header, issue #952
...
Update state to keep track of this info.
Change function args as needed.
Make NumTx also an int64 for consistency.
2017-12-13 12:20:53 +01:00
c532e8cabc
add \n to Printf lines
2017-12-12 22:44:55 -06:00
bbc3b807c6
all: fix vet issues with build tags, formatting
...
* Build tags need to come before the package name
and have at least a blank line, between them and
the package, please see
https://golang.org/pkg/go/build/#hdr-Build_Constraints
* fmt.Println doesn't take formatting verbs
* Fix a missing formatting argument to fmt.Printf
2017-12-12 17:23:16 -07:00
5ea42475ce
cmd/abci-cli: implement batch
...
Can now run batch which can be tested by:
```shell
echo -e "echo foo\necho blue" | abci-cli batch
```
giving
```shell
I[12-12|07:55:55.513] Starting socketClient
module=abci-client impl=socketClient
-> code: OK
-> data: foo
-> data.hex: 0x666F6F
-> code: OK
-> data: blue
-> data.hex: 0x626C7565
```
2017-12-12 16:57:51 -07:00
cabc516726
batch: progress
2017-12-12 16:57:51 -07:00
ecc13d5a8e
cmd/abci-cli: use a single connection per session
...
Use the single client connection at startup time
for sending over commands instead of shelling out
for every command.
This code fixes the regression from
https://github.com/tendermint/abci/pull/117
which instead used "os/exec".Command with:
"abci-cli <the_command> [args...]"
The purpose of this code is to restore us
back to the state after cobra replace urlfave/cli.
There is still a bit of work to implement Batch
itself, but that should be simpler as a focused
command.
Fixes #133
2017-12-12 16:57:51 -07:00
64f056b57d
Merge branch '916-remove-sleeps-from-tests' into develop
2017-12-12 16:43:36 -05:00
90df9fa1bf
p2p/trust: remove extra channels
2017-12-12 16:43:19 -05:00
eae6e6381e
trust metric is now a service and the test ticker has been added
2017-12-12 15:33:42 -05:00
6633889632
Short-circuit assertions in test command
2017-12-12 21:06:56 +01:00
04a18e0a97
briefly describe the recover process [ci skip]
2017-12-12 13:03:09 -06:00
06aece31cf
lower the max message size
2017-12-12 13:02:40 -06:00
e0296d6c3c
consensus: fix makeBlockchainFromWAL
2017-12-12 12:14:15 -05:00
310beae63c
types: check ResponseCheckTx too
2017-12-12 10:14:50 -05:00
5ffb5f01cc
Add more tests for Proposal/Vote serialization
...
String() and Proposal valid after serializing.
To be safe, but mainly to increase test coverage for the PR
2017-12-12 12:59:51 +01:00
8576ad58bd
Cleanup canonical json
2017-12-12 12:59:51 +01:00
c4860f6c29
Force CanonicalTime to UTC
...
fixes issue with vote serialization breaking the signatures
2017-12-12 12:59:51 +01:00
850310b034
Add test to isolate precommit failure
...
types/vote_test.go now checks signature on a serialized and
then deserialized vote. Turns out go-wire time encoding doesn't
respect timezones, and the signatures don't check out.
2017-12-12 12:59:51 +01:00
a29c781295
Add default timestamp to all instances of *types.Vote
2017-12-12 12:59:51 +01:00
599673690c
Add timestamp to vote canonical encoding
2017-12-12 12:59:51 +01:00