Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

del log of data.hash #3270

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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