Commit 1dc35103 authored by szh's avatar szh

add log

parent e58629d7
......@@ -100,6 +100,8 @@ func DealBlock() error {
rs.MiningTicketCount += rs1.MiningTicketCount
rs.MinedAmount += rs1.MinedAmount
}
logging.Info("rt1:",*rt1)
logging.Info("rs1:",*rs1)
}
}
......@@ -119,6 +121,8 @@ func DealBlock() error {
//}
raspStat := NewMinerStat(&rs)
raspTxs := NewMinerTxs(&rt)
logging.Info("raspStat:",*raspStat)
logging.Info("raspTxs:",*raspTxs)
err = models.UpdateBlock(raspTxs,raspStat)
if err != nil {
logging.Error("UpdateBlock err ",err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment