Skip to content

Commit 0a04ed4

Browse files
authored
Merge pull request #2682 from CortexFoundation/dev
use types.Sender instead of signer.Sender
2 parents bffd1a0 + 19bd795 commit 0a04ed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/txpool/txpool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@ func (pool *TxPool) promoteExecutables(accounts []common.Address) []*types.Trans
13901390
// promote all promotable transactions
13911391
promoted := make([]*types.Transaction, 0, len(promotable))
13921392
for _, tx := range promotable {
1393-
from, _ := pool.signer.Sender(tx)
1393+
from, _ := types.Sender(pool.signer, tx) // already validated
13941394
if pool.promoteTx(from, tx.Hash(), tx) {
13951395
promoted = append(promoted, tx)
13961396
}

0 commit comments

Comments
 (0)