Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
feat(clist_mempool): add logging around resCbFirstTime
Browse files Browse the repository at this point in the history
  • Loading branch information
Zygimantass committed May 17, 2023
1 parent 798fdcb commit 2cee713
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mempool/v0/clist_mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func (mem *CListMempool) CheckTx(
cb func(*abci.Response),
txInfo mempool.TxInfo,
) error {

mem.logger.Info("started checking transaction", "tx", tx.Hash(), "from", txInfo.SenderP2PID)
mem.updateMtx.RLock()
// use defer to unlock mutex because application (*local client*) might panic
defer mem.updateMtx.RUnlock()
Expand Down Expand Up @@ -381,6 +381,7 @@ func (mem *CListMempool) resCbFirstTime(
peerP2PID p2p.ID,
res *abci.Response,
) {
mem.logger.Info("called resCbFirstTime on", "tx", types.Tx(tx).Hash(), "from", peerP2PID)
switch r := res.Value.(type) {
case *abci.Response_CheckTx:
var postCheckErr error
Expand Down

0 comments on commit 2cee713

Please sign in to comment.