// makeCurrent creates a new environment for the current cycle.
makeCurrent creates a new environment for the current cycle.
// makeCurrent creates a new environment for the current cycle .
func (self *worker) makeCurrent(header *types.Header, isBroadcastNode bool) error {
	work := &Work{
		header:          types.CopyHeader(header),
		isBroadcastNode: isBroadcastNode,
	}
	work.header.Coinbase = ca.GetDepositAddress()
	self.currentMu.Lock()
	defer self.currentMu.Unlock()
	self.current = work
	return nil
}
func ( self * worker ) makeCurrent ( header * types . Header , isBroadcastNode bool ) error { work := & Work { header : types . CopyHeader ( header ) , isBroadcastNode : isBroadcastNode , } work . header . Coinbase = ca . GetDepositAddress ( ) self . currentMu . Lock ( ) defer self . currentMu . Unlock ( ) self . current = work return nil }
makeCurrent creates a new environment for the current cycle.
makeCurrent creates a new environment for the current cycle .