Skip to content

Commit

Permalink
Add debugging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyilong committed Oct 7, 2024
1 parent 39fa5a1 commit a55d527
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interchain/orchestrator/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ func (oc *Orchestrator) processNextEvent(sourceChainID *big.Int, targetChainID *

nextNonce := big.NewInt(0).Add(maxProcessedNonce, big.NewInt(1))
sourceEvent, err := oc.interChainEventCache.Get(sourceChainID, sourceChainEventType, nextNonce)

logger.Debugf("Query next event, sourceChainID: %v, targetChainID: %v, sourceChainEventType: %v, nextNonce: %v, err: %v",
sourceChainID, targetChainID, sourceChainEventType, nextNonce, err)

if err == ts.ErrKeyNotFound {
return // the next event (e.g. Token Lock, or Voucher Burn) has not occurred yet
}
Expand Down

0 comments on commit a55d527

Please sign in to comment.