From fa2f60d5476292c6211aeb1d0c5111932c1f2681 Mon Sep 17 00:00:00 2001 From: jojoin Date: Wed, 29 Nov 2023 22:37:59 +0800 Subject: [PATCH] chg doc --- handler/blockdata.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/handler/blockdata.go b/handler/blockdata.go index 4c1c23d..df564bf 100644 --- a/handler/blockdata.go +++ b/handler/blockdata.go @@ -21,8 +21,10 @@ func GetBlocksData(p2p interfaces.P2PManager, cmtr interfaces.P2PMsgCommunicator realEndHeight := uint64(0) allBlockDatas := msgbody[24:] alldtslen := len(allBlockDatas) + perok := fmt.Sprintf("%.2f%%", (float64(endHeight) / float64(lastestHeight) * 100)) + //fmt.Println(endHeight, lastestHeight) // print - fmt.Print("got blocks: ", startHeight, " ~ ", endHeight, ", inserting... ") + fmt.Print("got blocks(", perok, "): ", startHeight, " ~ ", endHeight, ", inserting... ") // parse block seek := uint32(0) for {