Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
hacashcom committed Aug 30, 2023
1 parent d258912 commit 5fedf29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions handler/newtxblock.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ func GetBlockDiscover(p2p interfaces.P2PManager, msgcator interfaces.P2PMsgCommu
return // error block height
}
// note
fmt.Printf("discover new block height: %d, txs: %d, hash: %s, time: %s, try to inserting ... ",
fmt.Printf("[%s] discover new block height: %d, txs: %d, hash: %s, time: %s, try to inserting ... ",
time.Now().Format(time_format_layout),
block.GetHeight(), block.GetCustomerTransactionCount(), block.Hash().ToHex(),
time.Unix(int64(block.GetTimestamp()), 0).Format(time_format_layout))
time.Unix(int64(block.GetTimestamp()), 0).Format("15:04:05"))
// do insert
//testInsertTimeStart := time.Now()
err := blockchain.GetChainEngineKernel().InsertBlock(block, "discover")
Expand Down

0 comments on commit 5fedf29

Please sign in to comment.