return copy of pending block

This commit is contained in:
Bas van Kervel 2015-06-23 17:20:11 +02:00
parent 6b5532ab0d
commit f56d5fb019

View file

@ -135,5 +135,6 @@ func (self *Miner) PendingState() *state.StateDB {
} }
func (self *Miner) PendingBlock() *types.Block { func (self *Miner) PendingBlock() *types.Block {
return self.worker.pendingBlock() copy := *self.worker.pendingBlock()
return &copy
} }