Skip to content

Commit 08e3efb

Browse files
authored
Merge pull request #333 from meshplus/fix/fix-direct-transaction-bug-v1.21
fix(exchanger): fix a bug when dst chain receive INTERCHAIN and RECEIPT_ROLLBACK simultaneously
2 parents 4795cb3 + 0f35f30 commit 08e3efb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/exchanger/direct_consumer.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ func (ex *Exchanger) listenIBTPFromDestAdaptForDirect(servicePair string) {
4545
}
4646

4747
if isRollback := ex.isIBTPRollbackForDirect(ibtp); isRollback {
48+
// receipt time out, need update ibtp with invoke info
49+
ibtp, _ = ex.srcAdapt.QueryIBTP(ibtp.ID(), true)
4850
ex.rollbackIBTPForDirect(ibtp)
4951
} else {
5052
ex.sendIBTPForDirect(ex.destAdapt, ex.srcAdapt, ibtp, !ex.isIBTPBelongSrc(ibtp), false)

0 commit comments

Comments
 (0)