Erik Grinaker and GitHub
e69a3d9703
rpc/test: wait for subscription in TestTxEventsSentWithBroadcastTxAsync ( #4907 )
...
Mitigates race condition causing these test failures:
```
=== RUN TestTxEventsSentWithBroadcastTxAsync
=== RUN TestTxEventsSentWithBroadcastTxAsync/*http.HTTP
I[2020-05-25|12:29:08.477] Starting WSEvents service impl=WSEvents
TestTxEventsSentWithBroadcastTxAsync/*http.HTTP: event_test.go:124:
Error Trace: event_test.go:124
Error: Expected nil, but got: &errors.errorString{s:"timed out waiting for event"}
Test: TestTxEventsSentWithBroadcastTxAsync/*http.HTTP
Messages: 0: timed out waiting for event
```
2020-05-27 11:49:57 +00:00
Erik Grinaker and GitHub
f146ef2528
p2p: remove nil guard ( #4901 )
...
https://github.com/tendermint/tendermint/pull/4893#discussion_r430940912
2020-05-27 11:36:42 +00:00
Erik Grinaker and GitHub
804e2d1f97
rpc/test: wait for mempool CheckTx callback ( #4908 )
...
Fixes race conditions causing the following test failures:
```
=== RUN TestUnconfirmedTxs
TestUnconfirmedTxs: rpc_test.go:342:
Error Trace: rpc_test.go:342
Error: Not equal:
expected: 1
actual : 0
Test: TestUnconfirmedTxs
TestUnconfirmedTxs: rpc_test.go:343:
Error Trace: rpc_test.go:343
Error: Not equal:
expected: 1
actual : 0
Test: TestUnconfirmedTxs
TestUnconfirmedTxs: rpc_test.go:345:
Error Trace: rpc_test.go:345
Error: Not equal:
expected: types.Txs{types.Tx{0x39, 0x44, 0x4d, 0x6c, 0x4b, 0x66, 0x46, 0x78, 0x3d, 0x45, 0x33, 0x33, 0x68, 0x47, 0x6e, 0x79, 0x58}}
actual : types.Txs(nil)
Diff:
--- Expected
+++ Actual
@@ -1,4 +1,2 @@
-(types.Txs) (len=1) {
- (types.Tx) (len=17) Tx{39444D6C4B6646783D45333368476E7958}
-}
+(types.Txs) <nil>
Test: TestUnconfirmedTxs
TestUnconfirmedTxs: rpc_test.go:342:
Error Trace: rpc_test.go:342
Error: Not equal:
expected: 1
actual : 0
Test: TestUnconfirmedTxs
TestUnconfirmedTxs: rpc_test.go:343:
Error Trace: rpc_test.go:343
Error: Not equal:
expected: 1
actual : 0
Test: TestUnconfirmedTxs
TestUnconfirmedTxs: rpc_test.go:345:
Error Trace: rpc_test.go:345
Error: Not equal:
expected: types.Txs{types.Tx{0x39, 0x44, 0x4d, 0x6c, 0x4b, 0x66, 0x46, 0x78, 0x3d, 0x45, 0x33, 0x33, 0x68, 0x47, 0x6e, 0x79, 0x58}}
actual : types.Txs{}
Diff:
--- Expected
+++ Actual
@@ -1,3 +1,2 @@
-(types.Txs) (len=1) {
- (types.Tx) (len=17) Tx{39444D6C4B6646783D45333368476E7958}
+(types.Txs) {
}
Test: TestUnconfirmedTxs
--- FAIL: TestUnconfirmedTxs (0.20s)
=== RUN TestNumUnconfirmedTxs
TestNumUnconfirmedTxs: rpc_test.go:364:
Error Trace: rpc_test.go:364
Error: Not equal:
expected: 1
actual : 0
Test: TestNumUnconfirmedTxs
TestNumUnconfirmedTxs: rpc_test.go:365:
Error Trace: rpc_test.go:365
Error: Not equal:
expected: 1
actual : 0
Test: TestNumUnconfirmedTxs
TestNumUnconfirmedTxs: rpc_test.go:364:
Error Trace: rpc_test.go:364
Error: Not equal:
expected: 1
actual : 0
Test: TestNumUnconfirmedTxs
TestNumUnconfirmedTxs: rpc_test.go:365:
Error Trace: rpc_test.go:365
Error: Not equal:
expected: 1
actual : 0
Test: TestNumUnconfirmedTxs
--- FAIL: TestNumUnconfirmedTxs (0.09s)
```
2020-05-27 11:24:05 +00:00
Erik Grinaker and GitHub
f1000794f2
types/test: remove slow test cases in TestValSetUpdatePriorityOrderTests ( #4903 )
...
These test cases are extremely slow when running with the race detector, often taking more that 2 minutes on my local machine. I can easily see them timing out on the much slower CI machines, causing these failures:
```
panic: test timed out after 5m0s
goroutine 234 [running]:
testing.(*M).startAlarm.func1()
/usr/local/go/src/testing/testing.go:1460 +0x11c
created by time.goFunc
/usr/local/go/src/time/sleep.go:168 +0x52
goroutine 1 [chan receive, 4 minutes]:
testing.(*T).Run(0xc000172c60, 0x107a5a2, 0x22, 0x11bfc68, 0x1)
/usr/local/go/src/testing/testing.go:1044 +0x699
testing.runTests.func1(0xc000172c60)
/usr/local/go/src/testing/testing.go:1285 +0xa7
testing.tRunner(0xc000172c60, 0xc00012bcc8)
/usr/local/go/src/testing/testing.go:992 +0x1ec
testing.runTests(0xc00000e2c0, 0x1901500, 0x72, 0x72, 0x0)
/usr/local/go/src/testing/testing.go:1283 +0x528
testing.(*M).Run(0xc000214380, 0x0)
/usr/local/go/src/testing/testing.go:1200 +0x300
github.com/tendermint/tendermint/types.TestMain(0xc000214380)
/go/src/github.com/tendermint/tendermint/types/block_test.go:30 +0x59
main.main()
_testmain.go:380 +0x334
goroutine 255 [runnable]:
bytes.Equal(...)
/usr/local/go/src/bytes/bytes.go:20
github.com/tendermint/tendermint/types.(*ValidatorSet).GetByAddress(0xc005499020, 0xc006056650, 0x5, 0x8, 0x13af, 0xc005514100)
/go/src/github.com/tendermint/tendermint/types/validator_set.go:253 +0xfd
github.com/tendermint/tendermint/types.verifyUpdates.func1(0xc00614b940, 0xc005499020, 0x47cd)
/go/src/github.com/tendermint/tendermint/types/validator_set.go:415 +0x84
github.com/tendermint/tendermint/types.verifyUpdates(0xc006110000, 0x11b7, 0x1780, 0xc005499020, 0xb52ff, 0x0, 0x0, 0x5c9)
/go/src/github.com/tendermint/tendermint/types/validator_set.go:429 +0x220
github.com/tendermint/tendermint/types.(*ValidatorSet).updateWithChangeSet(0xc005499020, 0xc00602c000, 0x1780, 0x1780, 0xc006098201, 0xc00608d4b8, 0xc006037bf8)
/go/src/github.com/tendermint/tendermint/types/validator_set.go:600 +0x2f3
github.com/tendermint/tendermint/types.(*ValidatorSet).UpdateWithChangeSet(0xc005499020, 0xc00602c000, 0x1780, 0x1780, 0x1780, 0x1780)
/go/src/github.com/tendermint/tendermint/types/validator_set.go:636 +0x78
github.com/tendermint/tendermint/types.applyChangesToValSet(0xc0005c8ea0, 0x0, 0x0, 0xc005499020, 0xc0005d1160, 0x3, 0x3)
/go/src/github.com/tendermint/tendermint/types/validator_set_test.go:1169 +0x1bb
github.com/tendermint/tendermint/types.verifyValSetUpdatePriorityOrder(0xc0005c8ea0, 0xc005499020, 0x0, 0x0, 0xc005600000, 0x2710, 0x2710, 0xc0055c8000, 0x5c9, 0x5c9, ...)
/go/src/github.com/tendermint/tendermint/types/validator_set_test.go:1239 +0x217
github.com/tendermint/tendermint/types.TestValSetUpdatePriorityOrderTests(0xc0005c8ea0)
/go/src/github.com/tendermint/tendermint/types/validator_set_test.go:1228 +0x1205
testing.tRunner(0xc0005c8ea0, 0x11bfc68)
/usr/local/go/src/testing/testing.go:992 +0x1ec
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:1043 +0x661
FAIL github.com/tendermint/tendermint/types 300.677s
FAIL
```
2020-05-27 11:10:49 +00:00
Anton Kaliaev and GitHub
287110d425
consensus: bring back log.Error statement ( #4899 )
...
Refs #3406
cs.Logger is protected by a global mutex, so it cannot be a reason for
the halt in #3401 .
2020-05-27 13:31:02 +04:00
Callum Waters and GitHub
2014357a19
evidence: remove header from phantom evidence ( #4892 )
2020-05-27 09:20:45 +02:00
Erik Grinaker and GitHub
d0dcf81f98
rpc/test: fix test race in TestAppCalls ( #4894 )
...
Fixes the following test race condition:
```
=== RUN TestAppCalls
TestAppCalls: rpc_test.go:216:
Error Trace: rpc_test.go:216
Error: Expected value not to be nil.
Test: TestAppCalls
--- FAIL: TestAppCalls (2.20s)
```
2020-05-26 16:08:42 +00:00
Erik Grinaker and GitHub
f4978466b9
p2p/test: fix Switch test race condition ( #4893 )
2020-05-26 17:50:07 +02:00
Callum Waters and GitHub
3c1cb77db2
lite2/http: fix provider test by increasing the block retention value ( #4890 )
2020-05-26 17:17:43 +02:00
Erik Grinaker and GitHub
40d5c7f532
p2p/test: wait for listener to get ready ( #4881 )
...
Attempt to fix this the below test failure by waiting for the listener to get ready. I am not at all convinced that this is the correct fix - the below indicates that the TCP socket was closed after it was set up - but I'm unable to come up with an actionable hypothesis for what caused it.
```
2020/05/14 17:25:11 Failed to accept conn: accept tcp 127.0.0.1:44737: use of closed network connection
2020/05/14 17:25:11 Failed to accept conn: accept tcp 127.0.0.1:42589: use of closed network connection
2020/05/14 17:25:11 Failed to accept conn: accept tcp 127.0.0.1:40905: use of closed network connection
2020/05/14 17:25:12 Failed to accept conn: accept tcp 127.0.0.1:39847: use of closed network connection
2020/05/14 17:25:12 Failed to accept conn: accept tcp 127.0.0.1:39989: use of closed network connection
2020/05/14 17:25:12 Failed to accept conn: accept tcp 127.0.0.1:43587: use of closed network connection
2020/05/14 17:25:12 Failed to accept conn: accept tcp 127.0.0.1:35415: use of closed network connection
2020/05/14 17:25:12 Failed to accept conn: accept tcp 127.0.0.1:38657: use of closed network connection
2020/05/14 17:25:12 Failed to accept conn: accept tcp 127.0.0.1:38217: use of closed network connection
2020/05/14 17:25:13 Failed to accept conn: accept tcp 127.0.0.1:42247: use of closed network connection
2020/05/14 17:25:16 Failed to accept conn: accept tcp 127.0.0.1:39705: use of closed network connection
2020/05/14 17:25:16 Failed to accept conn: accept tcp 127.0.0.1:39491: use of closed network connection
2020/05/14 17:25:16 Failed to accept conn: accept tcp 127.0.0.1:37107: use of closed network connection
2020/05/14 17:25:16 Failed to accept conn: accept tcp 127.0.0.1:39909: use of closed network connection
2020/05/14 17:25:16 Failed to accept conn: accept tcp 127.0.0.1:37987: use of closed network connection
2020/05/14 17:25:16 Failed to accept conn: accept tcp 127.0.0.1:41505: use of closed network connection
2020/05/14 17:25:16 Failed to accept conn: accept tcp 127.0.0.1:39121: use of closed network connection
2020/05/14 17:25:16 Failed to accept conn: accept tcp 127.0.0.1:46569: use of closed network connection
2020/05/14 17:25:16 Failed to accept conn: accept tcp 127.0.0.1:45643: use of closed network connection
2020/05/14 17:25:16 Failed to accept conn: accept tcp 127.0.0.1:35289: use of closed network connection
--- FAIL: TestTransportMultiplexAcceptMultiple (0.43s)
transport_test.go:200: auth failure: handshake failed: EOF
FAIL
```
2020-05-26 13:34:28 +00:00
Anton Kaliaev and GitHub
187120a04d
types: remove unnecessary sort call ( #4876 )
...
in TestValSetUpdatePriorityOrderTests https://app.circleci.com/pipelines/github/tendermint/tendermint/3849/workflows/6d241fc8-72a8-4a3b-b3fc-887a48518f82/jobs/114996
also, reduce the number of reactors in TestReactorBroadcastTxMessage https://app.circleci.com/pipelines/github/tendermint/tendermint/3797/workflows/935cda34-dfb3-46e9-8257-92277171c91b/jobs/114562
2020-05-26 13:16:58 +00:00
Erik Grinaker and GitHub
b9a0d47f14
test/blockchain/v0: mitigate test data race ( #4886 )
...
Mitigates the below data race. The proper fix involves not fiddling with reactor internals, which needs a rewrite of the test and possible additional reactor infrastructure.
```
==================
WARNING: DATA RACE
Write at 0x00c001118e78 by goroutine 187:
github.com/tendermint/tendermint/blockchain/v0.TestBadBlockStopsPeer()
/go/src/github.com/tendermint/tendermint/blockchain/v0/reactor_test.go:234 +0x9d7
testing.tRunner()
/usr/local/go/src/testing/testing.go:992 +0x1eb
Previous read at 0x00c001118e78 by goroutine 326:
[failed to restore the stack]
Goroutine 187 (running) created at:
testing.(*T).Run()
/usr/local/go/src/testing/testing.go:1043 +0x660
testing.runTests.func1()
/usr/local/go/src/testing/testing.go:1285 +0xa6
testing.tRunner()
/usr/local/go/src/testing/testing.go:992 +0x1eb
testing.runTests()
/usr/local/go/src/testing/testing.go:1283 +0x527
testing.(*M).Run()
/usr/local/go/src/testing/testing.go:1200 +0x2ff
main.main()
_testmain.go:112 +0x337
Goroutine 326 (running) created at:
github.com/tendermint/tendermint/blockchain/v0.(*BlockchainReactor).OnStart()
/go/src/github.com/tendermint/tendermint/blockchain/v0/reactor.go:118 +0x12c
github.com/tendermint/tendermint/libs/service.(*BaseService).Start()
/go/src/github.com/tendermint/tendermint/libs/service/service.go:140 +0x504
github.com/tendermint/tendermint/blockchain/v0.(*BlockchainReactor).Start()
<autogenerated>:1 +0x43
github.com/tendermint/tendermint/p2p.(*Switch).OnStart()
/go/src/github.com/tendermint/tendermint/p2p/switch.go:225 +0x120
github.com/tendermint/tendermint/libs/service.(*BaseService).Start()
/go/src/github.com/tendermint/tendermint/libs/service/service.go:140 +0x504
github.com/tendermint/tendermint/p2p.StartSwitches()
/go/src/github.com/tendermint/tendermint/p2p/test_util.go:168 +0x75
github.com/tendermint/tendermint/p2p.MakeConnectedSwitches()
/go/src/github.com/tendermint/tendermint/p2p/test_util.go:89 +0x17d
github.com/tendermint/tendermint/blockchain/v0.TestBadBlockStopsPeer()
/go/src/github.com/tendermint/tendermint/blockchain/v0/reactor_test.go:209 +0x768
testing.tRunner()
/usr/local/go/src/testing/testing.go:992 +0x1eb
==================
panic: BlockStore can only save contiguous blocks. Wanted 149, got 147
goroutine 1259 [running]:
github.com/tendermint/tendermint/store.(*BlockStore).SaveBlock(0xc000ff9cc0, 0xc001997180, 0xc0010c6a00, 0xc0013b3000)
/go/src/github.com/tendermint/tendermint/store/store.go:276 +0xbc4
github.com/tendermint/tendermint/blockchain/v0.(*BlockchainReactor).poolRoutine(0xc001118d00, 0x107c000)
/go/src/github.com/tendermint/tendermint/blockchain/v0/reactor.go:355 +0xe90
created by github.com/tendermint/tendermint/blockchain/v0.(*BlockchainReactor).OnStart
/go/src/github.com/tendermint/tendermint/blockchain/v0/reactor.go:118 +0x12d
FAIL github.com/tendermint/tendermint/blockchain/v0 11.447s
FAIL
```
2020-05-26 11:51:37 +00:00
Erik Grinaker and GitHub
0566646373
test/abci: use random socket names to avoid collisions ( #4885 )
...
Fixes these test failures:
```
=== RUN TestKVStore
### Testing KVStore
I[2020-05-25|13:32:31.303] Starting ABCIServer service module=abci-server impl=ABCIServer
TestKVStore: example_test.go:48:
Error Trace: example_test.go:48
example_test.go:28
Error: Received unexpected error:
listen unix test.sock: bind: address already in use
Test: TestKVStore
Messages: Error starting socket server
--- FAIL: TestKVStore (0.00s)
```
2020-05-26 11:33:49 +00:00
Marko and GitHub
7866f4a995
ci: migrate localnet to github actions ( #4878 )
...
## Description
This PR moves `localnet` from circleci to github actions.
Would we like to add longer lived nets?
Closes: #XXX
2020-05-26 08:10:41 +00:00
Marko and GitHub
89a3cb2b0a
libs: remove kv ( #4874 )
...
## Description
In https://github.com/tendermint/tendermint/pull/4466 a new type was created (EventAttribute) that replaced KV.Pair. This made the type Pair deadcode, this pr removes that type.
I don't think a changelog entry is needed since it is not being used anymore. But will add a section to the upgrading.md to let users know that it was replaced
Closes: #XXX
2020-05-26 06:37:24 +00:00
Marko and GitHub
e03b61abd2
proto: add proto files for ibc unblock ( #4853 )
...
## Description
these proto files are meant to help unblock ibc in their quest of migrating the ibc module to proto.
Closes: #XXX
2020-05-25 15:52:34 +00:00
Callum Waters and GitHub
970cbbad6d
blockchain[v1]: increased timeout times for peer tests ( #4871 )
2020-05-25 17:33:13 +02:00
Anton Kaliaev and GitHub
439a06ad53
p2p: TestTransportMultiplexAcceptNonBlocking and TestTransportMultiplexConnFilterTimeout ( #4868 )
...
* p2p: log error in transport tests
* p2p: exit from fast peer only when handshake is done
TestTransportMultiplexAcceptNonBlocking
fixes panic: write to a closed channel
* p2p: increase timeout in TestTransportMultiplexConnFilterTimeout
Fixes https://github.com/tendermint/tendermint/issues/4854#issuecomment-630739200
* p2p: yield control to another goroutine manually
* increase timeout in TestTransportMultiplexAcceptNonBlocking
2020-05-25 19:01:34 +04:00
Marko and GitHub
976eebe281
ci: bump the timeout for test_coverage ( #4864 )
...
## Description
bumping the timeout on test_coverage as the amount of tests have increased causing quite a few timeouts.
Closes: #XXX
2020-05-22 12:04:01 +00:00
Callum Waters and GitHub
1b50b4e765
lite2: fix pivot height during bisection ( #4850 )
2020-05-20 06:33:45 +02:00
Marko and GitHub
1ecc886c44
ci: add paths
...
## Description
by adding paths the ci job wont run if the files aren't touched. this is a change from before where they would run to see if there were changes
Closes: #XXX
2020-05-19 12:08:10 +00:00
Anton Kaliaev and GitHub
3fb80e560d
p2p: return masked IP (not the actual IP) in addrbook#groupKey
...
Closes #4846
Spec https://github.com/tendermint/spec/pull/96
2020-05-19 10:13:00 +00:00
Marko and GitHub
9149ee7d8b
lint: various fixes
...
## Description
various linitng fixes
2020-05-18 10:20:06 +00:00
dependabot-preview[bot] and GitHub
d1d33057dc
build(deps): Bump github.com/golang/protobuf from 1.4.1 to 1.4.2 ( #4849 )
2020-05-15 13:19:11 +00:00
Anton Kaliaev and GitHub
e9897c82e5
rpc/core: do not lock ConsensusState mutex
...
in /validators, /consensus_params and /status
Closes #3161
2020-05-15 11:30:08 +00:00
Erik Grinaker and GitHub
476d49c27d
docs: move tcp-window.png to imgs/
...
Possibly fixes #4842 . I'm not familiar with the doc generation pipeline, but other images under `imgs/` seem to work so just cargo-culting it.
2020-05-14 15:31:52 +00:00
Callum Waters and GitHub
c0682a3bed
evidence: prevent proposer from proposing duplicate pieces of evidence ( #4839 )
...
prevent proposer from proposing duplicate pieces of evidence
2020-05-13 18:46:30 +02:00
Marko and GitHub
243dfbd585
proto: remove test files
...
## Description
remove test files for proto stubs
Closes: #XXX
2020-05-13 14:30:33 +00:00
Anton Kaliaev and GitHub
a14ff5cb30
rpc: refactor lib folder ( #4836 )
...
Closes https://github.com/tendermint/tendermint/issues/3857
Moves `lib/` folder to `jsonrpc/`.
Renames:
**packages**
`rpc` package -> `jsonrpc` package
`rpcclient` package -> `client` package
`rpcserver` package -> `server` package
**structs and interfaces**
```
JSONRPCClient to Client
JSONRPCRequestBatch to RequestBatch
JSONRPCCaller to Caller
```
**functions**
```
StartHTTPServer to Serve
StartHTTPAndTLSServer to ServeTLS
rpc/jsonrpc/client: rename NewURIClient to NewURI
NewJSONRPCClient to New
NewJSONRPCClientWithHTTPClient to NewWithHTTPClient
NewWSClient to NewWS
```
**misc**
- unexpose `ResponseWriterWrapper`
- remove unused http_params.go
2020-05-13 16:40:57 +04:00
Anton Kaliaev and GitHub
e20105e658
mempool: do not launch broadcastTxRoutine if Broadcast is off
...
Refs #3479
2020-05-13 08:39:28 +00:00
Anton Kaliaev and GitHub
379b1b85bc
rpc: use a struct to wrap all the global objects
...
Closes #3433
2020-05-13 08:13:17 +00:00
Marko and GitHub
01e032dc99
libs: remove bech32
...
## Description
bech32 is only used in the sdk. I moved Bech32 to the sdk and we can remove it here. Don't think this needs to go into a minor release
Closes: #XXX
2020-05-12 18:43:35 +00:00
Anton Kaliaev and GitHub
84b9bde9cd
types: assert specific error in TestValSetUpdateOverflowRelated
...
Closes #4183
2020-05-12 17:56:02 +00:00
Marko and GitHub
cf4e056a33
abci: remove python examples
...
## Description
remove unused and unmaintained python examples of abci
Closes: #XXX
2020-05-12 09:52:04 +00:00
Erik Grinaker and GitHub
1af80b44fc
abci: remove protoreplace script
...
gogoproto is here to stay.
2020-05-12 09:03:20 +00:00
Anton Kaliaev and GitHub
b7b721c484
change use of errors.Wrap to fmt.Errorf with %w verb
...
Closes #4603
Commands used (VIM):
```
:args `rg -l errors.Wrap`
:argdo normal @q | update
```
where q is a macros rewriting the `errors.Wrap` to `fmt.Errorf`.
2020-05-12 03:35:47 +00:00
Marko and GitHub
8d63d7192f
abci: regenerate proto files
...
## Description
regenerate proto stubs
I do find max_num to be vague. possibly renaming to max_entries or max_evidence_entries may be more descriptive?
Closes: #XXX
2020-05-11 16:54:54 +00:00
Callum Waters and GitHub
7cb3d90e01
evidence: create proof of lock change and implement it in evidence store ( #4746 )
...
creates a proof of lock change which is an array of votes that proves the validator was permitted to change locked block and vote again. This proof is stored in the evidence pool and is used as a part of amnesia evidence
2020-05-11 17:06:01 +02:00
dependabot-preview[bot] and GitHub
18f178bf3b
build(deps): Bump github.com/spf13/viper from 1.6.3 to 1.7.0 ( #4814 )
2020-05-11 14:23:06 +00:00
Erik Grinaker and GitHub
d28b47ced7
test: revert Go 1.13→1.14 bump
...
Since we support 1.13 and above, let's use that as a baseline for tests.
2020-05-11 14:10:31 +00:00
Marko and GitHub
8dbca7aab3
swagger: remove duplicate blockID
...
## Description
remove duplicate BlockID in swagger files
Closes: #XXX
2020-05-11 13:59:16 +00:00
Anton Kaliaev and GitHub
2afae13a48
privval: retry GetPubKey/SignVote/SignProposal N times before
...
returning an error
Closes #4707
2020-05-11 13:42:19 +00:00
Callum Waters and GitHub
a620e5fd96
evidence: cap evidence to an absolute number ( #4780 )
...
The number of evidence that can be committed in a single block is capped by a new evidence parameter called MaxNum
2020-05-11 15:28:08 +02:00
dependabot-preview[bot] and GitHub
fed2502618
build(deps): Bump vuepress-theme-cosmos from 1.0.163 to 1.0.164 in /docs ( #4815 )
2020-05-11 12:55:25 +00:00
Erik Grinaker and GitHub
960c7402fe
test: fix p2p test build breakage caused by Debian testing
...
Debian testing caused Docker image build failures:
```
The following packages have unmet dependencies:
libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
```
It does not appear that we actually need testing, so removing it.
2020-05-11 12:42:11 +00:00
Anton Kaliaev and GitHub
398000a10d
pex: use highwayhash for pex bucket
...
Closes #2998
Spec PR: https://github.com/tendermint/spec/pull/94
2020-05-08 08:16:29 +00:00
Anton Kaliaev and GitHub
52784f67d0
mempool: allow ReapX and CheckTx functions to run in parallel
...
allow ReapX and CheckTx functions to run in parallel, making it not possible to block certain proposers from creating a new block.
Closes : #2972
2020-05-08 04:17:01 +00:00
Erik Grinaker and GitHub
81c2798df0
abci: fix protobuf lint issues
...
Fix some linter issues to conform with the Protobuf style guide.
The state sync enum changes are ok to break since it's not released yet. Personally I find the uppercase kind of ugly, but that's what the guide says. Couldn't find a way to generate camel case in Go, short of specifying custom names for each and every enum variant.
Another option would be to simply disable the enum case lint.
2020-05-07 14:40:22 +00:00
Marko and GitHub
678010c45e
fix linters & switch to official linter ( #4808 )
2020-05-07 16:17:43 +02:00
Callum Waters and GitHub
9535c47067
consensus: fix and rename TestStateLockPOLRelock ( #4796 )
...
correct test in consensus so that node relocks on same block and then changes lock when majority of another block is reached
2020-05-07 12:48:48 +02:00