mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth: add comments
This commit is contained in:
parent
68bc8982e7
commit
59acca5359
1 changed files with 2 additions and 0 deletions
|
|
@ -162,6 +162,7 @@ type chainSyncer struct {
|
|||
doneCh chan error // non-nil when sync is running
|
||||
}
|
||||
|
||||
// chainSyncOp is a scheduled sync operation.
|
||||
type chainSyncOp struct {
|
||||
mode downloader.SyncMode
|
||||
peer *peer
|
||||
|
|
@ -169,6 +170,7 @@ type chainSyncOp struct {
|
|||
head common.Hash
|
||||
}
|
||||
|
||||
// newChainSyncer creates a chainSyncer.
|
||||
func newChainSyncer(pm *ProtocolManager) *chainSyncer {
|
||||
return &chainSyncer{
|
||||
pm: pm,
|
||||
|
|
|
|||
Loading…
Reference in a new issue