diff options
author | Mark <markya0616@gmail.com> | 2017-09-08 05:22:27 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-09-08 05:22:27 +0800 |
commit | c1740e454015e61e8207cdeb34c48eee3adbb4d3 (patch) | |
tree | cf9ac38c8a8ff8ad3aec9d542e1f2c6632122511 /miner | |
parent | e3db1236de65619d26e87eb7c886e565fcc2eafc (diff) | |
download | go-tangerine-c1740e454015e61e8207cdeb34c48eee3adbb4d3.tar go-tangerine-c1740e454015e61e8207cdeb34c48eee3adbb4d3.tar.gz go-tangerine-c1740e454015e61e8207cdeb34c48eee3adbb4d3.tar.bz2 go-tangerine-c1740e454015e61e8207cdeb34c48eee3adbb4d3.tar.lz go-tangerine-c1740e454015e61e8207cdeb34c48eee3adbb4d3.tar.xz go-tangerine-c1740e454015e61e8207cdeb34c48eee3adbb4d3.tar.zst go-tangerine-c1740e454015e61e8207cdeb34c48eee3adbb4d3.zip |
core/types, miner: avoid tx sender miscaching (#14773)
Diffstat (limited to 'miner')
-rw-r--r-- | miner/worker.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miner/worker.go b/miner/worker.go index e1154ac06..2919d4a48 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -268,7 +268,7 @@ func (self *worker) update() { self.currentMu.Lock() acc, _ := types.Sender(self.current.signer, ev.Tx) txs := map[common.Address]types.Transactions{acc: {ev.Tx}} - txset := types.NewTransactionsByPriceAndNonce(txs) + txset := types.NewTransactionsByPriceAndNonce(self.current.signer, txs) self.current.commitTransactions(self.mux, txset, self.chain, self.coinbase) self.currentMu.Unlock() @@ -471,7 +471,7 @@ func (self *worker) commitNewWork() { log.Error("Failed to fetch pending transactions", "err", err) return } - txs := types.NewTransactionsByPriceAndNonce(pending) + txs := types.NewTransactionsByPriceAndNonce(self.current.signer, pending) work.commitTransactions(self.mux, txs, self.chain, self.coinbase) // compute uncles for the new block. |