From adf8ad769e04f5dd05e4b20f24fd04bb8e8f11ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CGheisMohammadi=E2=80=9D?= <“Gheis.Mohammadi@gmail.com”> Date: Tue, 27 Dec 2022 19:50:09 +0800 Subject: [PATCH] remove unused struct --- api/service/stagedstreamsync/staged_stream_sync.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/api/service/stagedstreamsync/staged_stream_sync.go b/api/service/stagedstreamsync/staged_stream_sync.go index 11ad9e8ae..a5fa011f4 100644 --- a/api/service/stagedstreamsync/staged_stream_sync.go +++ b/api/service/stagedstreamsync/staged_stream_sync.go @@ -9,7 +9,6 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/event" "github.com/harmony-one/harmony/core" - "github.com/harmony-one/harmony/core/types" "github.com/harmony-one/harmony/internal/utils" syncproto "github.com/harmony-one/harmony/p2p/stream/protocols/sync" sttypes "github.com/harmony-one/harmony/p2p/stream/types" @@ -87,13 +86,6 @@ type StagedStreamSync struct { evtDownloadStartedSubscribed bool } -// BlockWithSig the serialization structure for request DownloaderRequest_BLOCKWITHSIG -// The block is encoded as block + commit signature -type BlockWithSig struct { - Block *types.Block - CommitSigAndBitmap []byte -} - type Timing struct { isRevert bool isCleanUp bool @@ -185,7 +177,7 @@ func (s *StagedStreamSync) IsAfter(stage1, stage2 SyncStageID) bool { func (s *StagedStreamSync) RevertTo(revertPoint uint64, invalidBlockNumber uint64, invalidBlockHash common.Hash, invalidBlockStreamID sttypes.StreamID) { utils.Logger().Info(). - Interface("invalidBlockNumber", invalidBlockNumber). + Uint64("invalidBlockNumber", invalidBlockNumber). Interface("invalidBlockHash", invalidBlockHash). Interface("invalidBlockStreamID", invalidBlockStreamID). Uint64("revertPoint", revertPoint).