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
3 years ago
Callum Waters
02f8e4c0bd
blockstore: fix problem with seen commit ( #6782 )
3 years ago
JayT106
9a2a7d4307
state/privval: vote timestamp fix ( #6748 )
3 years ago
Callum Waters
6ff4c3139c
blockchain: rename to blocksync service ( #6755 )
3 years ago
JayT106
e70445f942
statesync/event: emit statesync start/end event ( #6700 )
3 years ago
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
3 years ago
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>
3 years ago
JayT106
d4cda544ae
fastsync/rpc: add TotalSyncedTime & RemainingTime to SyncInfo in /status RPC ( #6620 )
3 years ago
Aleksandr Bezobchuk
1dec3e139a
add stacktrace to panic logs ( #6662 )
3 years ago
Callum Waters
2d95e38986
Revert "consensus: skip all messages during sync ( #6577 )" ( #6654 )
This reverts commit 13b95e7127
.
3 years ago
JayT106
4334135651
privval: missing privval type check in SetPrivValidator ( #6645 )
3 years ago
Aleksandr Bezobchuk
414130aee1
pubsub: Refactor Event Subscription ( #6634 )
3 years ago
JayT106
11a71c228c
state/privval: no GetPubKey retry beyond the proposal/voting window ( #6578 )
Closes #5142
3 years ago
Sam Kleinman
917180dfd2
p2p: reduce buffering on channels ( #6609 )
Having smaller buffers in each reactor/channel will mean that there will be fewer stale messages.
3 years ago
JayT106
2cc872543b
rpc: add max peer block height into /status rpc call ( #6610 )
use `maxPeerBlockHeight` information to show the current network's best height.
Closes #3983
Relate to #3365
ref: the`highestBlock` in the response of `eth.isSyncing` call
https://web3js.readthedocs.io/en/v1.3.4/web3-eth.html#issyncing
3 years ago
Sam Kleinman
ae5f98881b
p2p: make NodeID and NetAddress public ( #6583 )
3 years ago
JayT106
2b0a3c151b
fastsync: update the metrics during fast-sync ( #6590 )
Closes #3507
3 years ago
Sam Kleinman
a6b30faf35
libs/time: move types/time into libs ( #6595 )
3 years ago
Callum Waters
c0f7fb08c0
config: add root dir to priv validator ( #6585 )
3 years ago
Sam Kleinman
886519e3ca
rpc: add subscription id to events ( #6386 )
Addresses #3931
3 years ago
Sam Kleinman
13b95e7127
consensus: skip all messages during sync ( #6577 )
Co-authored-by: Aleksandr Bezobchuk
3 years ago
JayT106
10fa151749
state/types: refactor makeBlock, makeBlocks and makeTxs ( #6567 )
Closes #3584
3 years ago
JayT106
a456b71f1f
state: move pruneBlocks from consensus/state to state/execution ( #6541 )
state: move pruneBlocks function from consensus/state to state/execution
Closes #5414
3 years ago
Callum Waters
d6b4bc267b
node/tests: clean up use of genesis doc and surrounding tests ( #6554 )
3 years ago
Marko
2f6141645b
metrics: change blocksize to a histogram ( #6549 )
## Description
Change block_size gauge to a histogram to observe block size overtime
This will help will see which chains have full blocks vs empty.
closes #5752
3 years ago
Sam Kleinman
a855f96946
p2p: renames for reactors and routing layer internal moves ( #6547 )
3 years ago