mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
return copy of pending block
This commit is contained in:
parent
6b5532ab0d
commit
f56d5fb019
1 changed files with 2 additions and 1 deletions
|
|
@ -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 ©
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue