From 6280739e5d0c970ed985e98135a887f3e44374b1 Mon Sep 17 00:00:00 2001 From: Nick Johnson Date: Tue, 18 Oct 2016 15:47:22 +0100 Subject: [PATCH] eth: Make a copy of pending state so we don't accidentally modify it --- miner/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index e5348cef425d..89064c3b9546 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -169,7 +169,7 @@ func (self *worker) pending() (*types.Block, *state.StateDB) { self.current.txs, nil, self.current.receipts, - ), self.current.state + ), self.current.state.Copy() } return self.current.Block, self.current.state.Copy() }