JayT106
d4cda544ae
fastsync/rpc: add TotalSyncedTime & RemainingTime to SyncInfo in /status RPC ( #6620 )
4 years ago
Aleksandr Bezobchuk
1dec3e139a
add stacktrace to panic logs ( #6662 )
4 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.
4 years ago
Sam Kleinman
9ffa7e8a2b
types: move NodeInfo from p2p ( #6618 )
4 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
4 years ago
Sam Kleinman
ae5f98881b
p2p: make NodeID and NetAddress public ( #6583 )
4 years ago
JayT106
2b0a3c151b
fastsync: update the metrics during fast-sync ( #6590 )
Closes #3507
4 years ago
JayT106
10fa151749
state/types: refactor makeBlock, makeBlocks and makeTxs ( #6567 )
Closes #3584
4 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
4 years ago
Cuong Manh Le
4e59575dc0
blockchain/v0: fix data race in blockchain channel ( #6518 )
There is a possible data race/panic between processBlockchainCh and
processPeerUpdates, since when we send to blockchainCh.Out in one
goroutine and close the channel in the other. The race is seen in some
Github Action runs.
This commit fix the race, by adding a peerUpdatesCh as a bridge between
processPeerUpdates and processBlockchainCh, so the former will send to
this channel, the later will listen and forward the message to
blockchainCh.Out channel.
Updates #6516
4 years ago
Callum Waters
d6b4bc267b
node/tests: clean up use of genesis doc and surrounding tests ( #6554 )
4 years ago
Sam Kleinman
a855f96946
p2p: renames for reactors and routing layer internal moves ( #6547 )
4 years ago