Skip to content

Commit c4c510b

Browse files
committed
hash print fix
1 parent ae098dc commit c4c510b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

monitor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,10 +846,10 @@ func (m *Monitor) forExchangeService(block *types.Block) error {
846846
}
847847

848848
func (m *Monitor) forPrintService(block *types.Block) error {
849-
log.Info("Block print", "num", block.Number, "hash", block.Hash.Hex(), "txs", len(block.Txs))
849+
log.Info("Block print", "num", block.Number, "hash", block.Hash, "txs", len(block.Txs))
850850
if len(block.Txs) > 0 {
851851
for _, t := range block.Txs {
852-
log.Info("Tx print", "hash", t.Hash.Hex(), "amount", t.Amount.String(), "gas", t.GasLimit, "receipt", t.Recipient, "payload", t.Payload)
852+
log.Info("Tx print", "hash", t.Hash, "amount", t.Amount, "gas", t.GasLimit, "receipt", t.Recipient, "payload", t.Payload)
853853
}
854854
}
855855
m.fs.Anchor(block.Number)

0 commit comments

Comments
 (0)