Commit Graph

68 Commits

Author SHA1 Message Date
William Banfield
a1ea25d005 add test for nil prevote on different proposal 2021-09-23 17:43:03 -04:00
William Banfield
c4628f6b36 lint ++ 2021-09-23 12:42:52 -04:00
William Banfield
81c5b43e3b no lint add space 2021-09-23 12:24:48 -04:00
William Banfield
db12fbc74e remove unlock checks 2021-09-23 12:22:35 -04:00
William Banfield
0f25a4f131 add ensureRelock to common_test 2021-09-23 12:06:10 -04:00
William Banfield
cb6c884ac4 add relock test 2021-09-23 12:01:29 -04:00
William Banfield
7f889fceba update test comments to include new 2021-09-23 12:00:16 -04:00
William Banfield
4a2cf84608 con state name update 2021-09-23 10:59:50 -04:00
William Banfield
962ceefa59 do not relock on old proposal test cleanup 2021-09-23 10:35:23 -04:00
William Banfield
f559eceaff udpate no relock function to be cleaner 2021-09-23 10:29:59 -04:00
William Banfield
00b758bf25 rename slashing 2021-09-23 10:23:48 -04:00
William Banfield
e47ef0ff47 add _ into test names 2021-09-23 10:21:40 -04:00
William Banfield
b7d4381fd8 update relock test to be more clear 2021-09-23 10:19:35 -04:00
William Banfield
2bb9ca26c4 update TestStatePOL comment 2021-09-22 13:47:43 -04:00
William Banfield
bf90e1c6e2 remove erroneous sleep 2021-09-22 13:35:30 -04:00
William Banfield
6bc596f5d0 fix TestStateProposerSelection2 to precommit for nil correctly 2021-09-22 12:12:39 -04:00
William Banfield
cffe1fe730 begin removing unlock condition 2021-09-22 10:31:31 -04:00
William Banfield
0a2098e44b add testing.T to new assertions 2021-09-22 10:20:58 -04:00
William Banfield
3f854d8b25 Merge branch 'wb/proposer-based-timestamps' into wb/issue-6849 2021-09-22 10:16:55 -04:00
William Banfield
dc12a19ba8 rename IsZero to IsNil and replace uses of block len check with helper 2021-09-22 09:52:59 -04:00
William Banfield
87f4beb374 consensus: remove panics from test helper functions (#6969) 2021-09-22 08:56:42 -04:00
William Banfield
51db3f86c5 add ensure new timeout back 2021-09-21 11:51:43 -04:00
William Banfield
c69f933d61 update precommit on relock comment 2021-09-21 11:43:33 -04:00
William Banfield
afff87f4ec update unlock description 2021-09-21 11:41:41 -04:00
William Banfield
f94528bfd0 nil check in addVote 2021-09-21 11:38:30 -04:00
William Banfield
41c3240b3d comment cleanup 2021-09-21 11:36:56 -04:00
William Banfield
c741c1cd81 spacing nit 2021-09-21 11:34:03 -04:00
William Banfield
9cfa6045ad Update internal/consensus/state.go 2021-09-20 18:44:06 -04:00
William Banfield
3b0ecf7246 update comments 2021-09-20 17:37:31 -04:00
William Banfield
914a85e53b further unlock testing 2021-09-20 17:29:57 -04:00
William Banfield
8bfedb6ff0 comment updates 2021-09-20 17:14:36 -04:00
William Banfield
abc07b4f6a update test for completed POL update 2021-09-20 17:09:00 -04:00
William Banfield
ec740a8750 fixing TestProposeValidBlock test 2021-09-20 14:48:16 -04:00
William Banfield
108eecf12a undo reset on prevotes 2021-09-17 15:38:18 -04:00
William Banfield
79469af2e6 comment out broken function 2021-09-16 19:56:08 -04:00
William Banfield
72b8deb6cb initial attempt at removing prevote locked block logic 2021-09-16 19:50:04 -04:00
William Banfield
fe84c0c256 failing test comment 2021-09-16 17:36:58 -04:00
William Banfield
883bec8752 tweak comments in failing test 2021-09-16 17:34:11 -04:00
William Banfield
6e826f8870 add failing test 2021-09-16 17:04:22 -04:00
William Banfield
382947ce93 rfc: add performance taxonomy rfc (#6921)
This document attempts to capture and discuss some of the areas of Tendermint that seem to be cited as causing performance issue. I'm hoping to continue to gather feedback and input on this document to better understand what issues Tendermint performance may cause for our users. 

The overall goal of this document is to allow the maintainers and community to get a better sense of these issues and to be more capably able to discuss them and weight trade-offs about any proposed performance-focused changes. This document does not aim to propose any performance improvements. It does suggest useful places for benchmarks and places where additional metrics would be useful for diagnosing and further understanding Tendermint performance.

Please comment with areas where my reasoning seems off or with additional areas that Tendermint performance may be causing user pain.
2021-09-16 06:13:27 +00:00
Callum Waters
bda948e814 statesync: implement p2p state provider (#6807) 2021-09-02 13:19:18 +02:00
Aleksandr Bezobchuk
58a6cfff9a internal/consensus: update error log (#6863)
Issues reported in Osmosis, where the message is extremely long. Also, there is absolutely no reason to log the message IMO. If we must, we can make the message log DEBUG.
2021-08-25 22:43:21 +00:00
William Banfield
4e96c6b234 tools: add mockery to tools.go and remove mockery version strings (#6787)
This change aims to keep versions of mockery consistent across developer laptops.

This change adds mockery to the `tools.go` file so that its version can be managed consistently in the `go.mod` file.

Additionally, this change temporarily disables adding mockery's version number to generated files. There is an outstanding issue against the mockery project related to the version string behavior when running from `go get`. I have created a pull request to fix this issue in the mockery project.
see: https://github.com/vektra/mockery/issues/397
2021-07-30 20:47:15 +00:00
Callum Waters
02f8e4c0bd blockstore: fix problem with seen commit (#6782) 2021-07-30 17:37:04 +02:00
JayT106
9a2a7d4307 state/privval: vote timestamp fix (#6748) 2021-07-29 12:52:53 +02:00
Callum Waters
6ff4c3139c blockchain: rename to blocksync service (#6755) 2021-07-28 17:25:42 +02:00
JayT106
e70445f942 statesync/event: emit statesync start/end event (#6700) 2021-07-22 08:16:50 +02:00
JayT106
c4f77ab6d1 fastsync/event: emit fastsync status event when switching consensus/fastsync (#6619)
closes #2498 
solves part of #3365

Note: difficult to test the event emit in SwitchToFastSync part, might need to change `stateSyncReactor` to an interface in the `nodeImpl` struct
2021-07-20 15:36:47 +00:00
Marko
363ea56680 abci: remove counter app (#6684)
* remove counter app

* remove unneeeded ci

* lint fix

* modify tx sizes

* cleanup docs

* Update abci/cmd/abci-cli/abci-cli.go

Co-authored-by: Callum Waters <cmwaters19@gmail.com>

* Update docs/app-dev/getting-started.md

Co-authored-by: Callum Waters <cmwaters19@gmail.com>

* Update docs/app-dev/getting-started.md

Co-authored-by: Callum Waters <cmwaters19@gmail.com>

* bring back comment

* migrate to kvstore and not persistent

* remove unused func

* test persistent

Co-authored-by: Callum Waters <cmwaters19@gmail.com>
2021-07-12 14:55:32 +00:00
JayT106
d4cda544ae fastsync/rpc: add TotalSyncedTime & RemainingTime to SyncInfo in /status RPC (#6620) 2021-07-07 07:26:01 -04:00