Skip to content

Commit 5e209fc

Browse files
kakyshamaxim-inj
authored andcommitted
fix(mempool): only run postCheck if tx check was successful
1 parent e9e4c8a commit 5e209fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mempool/clist_mempool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ func (mem *CListMempool) handleCheckTxResponse(tx types.Tx, sender p2p.ID) func(
407407
}
408408

409409
var postCheckErr error
410-
if mem.postCheck != nil {
410+
if mem.postCheck != nil && res.Code == abci.CodeTypeOK {
411411
postCheckErr = mem.postCheck(tx, res)
412412
}
413413

0 commit comments

Comments
 (0)