Skip to content

Commit

Permalink
eth: Make a copy of pending state so we don't accidentally modify it
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachnid committed Oct 18, 2016
1 parent 5b262ff commit 6280739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 6280739

Please sign in to comment.