Commit e58629d7 authored by szh's avatar szh

add tx.from

parent 326e0f44
......@@ -166,10 +166,13 @@ func dealTx(tx *types.Transaction) (*RMinerTxs,*RMinerStat,error) {
rt.Miner = tx.From()
rs.MinedAmount = miner.GetMiner().Reward
rs.MinedTicketCount = 1
rs.Addr = tx.From()
case ttype.TicketActionClose:
rs.MiningTicketCount -= int64(len(miner.GetTclose().TicketId))
rs.Addr = tx.From()
case ttype.TicketActionOpen:
rs.MiningTicketCount += int64(miner.GetTopen().Count)
rs.Addr = tx.From()
}
}
......
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