Skip to content

Commit

Permalink
chg doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jojoin committed Nov 29, 2023
1 parent 5fedf29 commit fa2f60d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion handler/blockdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fa2f60d

Please sign in to comment.