eth: add comments

This commit is contained in:
Felix Lange 2020-03-26 15:07:17 +01:00
parent 68bc8982e7
commit 59acca5359

View file

@ -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,