Skip to content

Commit

Permalink
del log of data.hash
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzhinei committed Dec 12, 2023
1 parent 3fdc51e commit 1937e06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/rpc/namespaces/eth/tx_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,12 @@ func (pool *TxPool) continueBroadcast(api *PublicEthereumAPI, currentNonce uint6
if !strings.Contains(err.Error(), sdkerrors.ErrMempoolIsFull.Error()) &&
!strings.Contains(err.Error(), sdkerrors.ErrInvalidSequence.Error()) {
// tx has err, and err is not mempoolfull, the tx should be dropped
err = fmt.Errorf("broadcast failed and tx dropped. err:%s; nonce:%d; tx_hash:%s; address:%s\n",
err.Error(), pool.addressTxsPool[address][i].Data.AccountNonce, pool.addressTxsPool[address][i].Data.Hash.String(), address.String())
err = fmt.Errorf("broadcast failed and tx dropped. err:%s; data:%v; address:%s\n",
err.Error(), pool.addressTxsPool[address][i].Data, address.String())
pool.dropTxs(i+1, address)
} else {
err = fmt.Errorf("broadcast failed. err:%s; nonce:%d; tx_hash:%s; address:%s\n",
err.Error(), pool.addressTxsPool[address][i].Data.AccountNonce, pool.addressTxsPool[address][i].Data.Hash.String(), address.String())
err = fmt.Errorf("broadcast failed. err:%s; data:%v; address:%s\n",
err.Error(), pool.addressTxsPool[address][i].Data, address.String())
pool.dropTxs(i, address)
}
pool.logger.Error(err.Error())
Expand Down

0 comments on commit 1937e06

Please sign in to comment.