mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 22:26:42 +00:00
miner: More documentation about new method
This commit is contained in:
parent
785fc94e7f
commit
6670f21b0b
1 changed files with 4 additions and 0 deletions
|
|
@ -188,6 +188,10 @@ func (self *Miner) Pending() (*types.Block, *state.StateDB) {
|
|||
}
|
||||
|
||||
// PendingBlock returns the currently pending block.
|
||||
//
|
||||
// Note, to access both the pending block and the pending state
|
||||
// simultaneously, please use Pending(), as the pending state can
|
||||
// change between multiple method calls
|
||||
func (self *Miner) PendingBlock() *types.Block {
|
||||
return self.worker.pendingBlock()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue