From 6670f21b0bde06bd091623462fe8141c9c493542 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Tue, 29 Nov 2016 21:08:21 +0100 Subject: [PATCH] miner: More documentation about new method --- miner/miner.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/miner/miner.go b/miner/miner.go index dcec9d8dd9..87568ac18a 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -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() }