Commit ba6a60ed authored by szh's avatar szh

up

parent c4833a46
......@@ -170,6 +170,7 @@ func (prev *prevHeight) SetMainHeight() error {
func DealBlock(height int64) ( []*models.RaspMinerStat, *models.RaspMinerTxs,error) {
logging.Info("dealheightstart",height)
blocks ,err := client.GetBlocks(&types.ReqBlocks{Start:height,End:height,IsDetail:true})
if err != nil {
logging.Error("GetBlocks err",err)
......@@ -228,8 +229,8 @@ func DealBlock(height int64) ( []*models.RaspMinerStat, *models.RaspMinerTxs,er
}
raspTxs := NewMinerTxs(rt)
logging.Info("txs",*raspTxs)
logging.Info("dealheightend",height)
//logging.Info("txs",*raspTxs)
return raspStatList,raspTxs,nil
}
......
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