mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 18:30:45 +00:00
Merge pull request #402 from gzliudan/XDP-02
remove key with empty value from map txs in function NewOrderTransactionByNonce
This commit is contained in:
commit
0d7dd867b7
1 changed files with 1 additions and 0 deletions
|
|
@ -305,6 +305,7 @@ func NewOrderTransactionByNonce(signer OrderSigner, txs map[common.Address]Order
|
||||||
heads := make(OrderTxByNonce, 0, len(txs))
|
heads := make(OrderTxByNonce, 0, len(txs))
|
||||||
for from, accTxs := range txs {
|
for from, accTxs := range txs {
|
||||||
if len(accTxs) == 0 {
|
if len(accTxs) == 0 {
|
||||||
|
delete(txs, from)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
heads = append(heads, accTxs[0])
|
heads = append(heads, accTxs[0])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue