Skip to content

Commit

Permalink
server/swap: add txid to log in handleInit/handleRedeem
Browse files Browse the repository at this point in the history
  • Loading branch information
chappjc committed May 20, 2022
1 parent d0d2636 commit 3979c68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/swap/swap.go
Expand Up @@ -1852,9 +1852,9 @@ func (s *Swapper) handleInit(user account.AccountID, msg *msgjson.Message) *msgj
// Search for the transaction for the full txWaitExpiration, even if it goes
// past the inaction deadline. processInit recognizes when it is revoked.
expireTime := time.Now().Add(txWaitExpiration).UTC()
log.Debugf("Allowing until %v (%v) to locate contract from %v (%v), match %v",
log.Debugf("Allowing until %v (%v) to locate contract from %v (%v), match %v, tx %s (%s)",
expireTime, time.Until(expireTime), makerTaker(stepInfo.actor.isMaker),
stepInfo.step, matchID)
stepInfo.step, matchID, coinStr, stepInfo.asset.Symbol)

// Since we have to consider broadcast latency of the asset's network, run
// this as a coin waiter.
Expand Down Expand Up @@ -1933,9 +1933,9 @@ func (s *Swapper) handleRedeem(user account.AccountID, msg *msgjson.Message) *ms
// Search for the transaction for the full txWaitExpiration, even if it goes
// past the inaction deadline. processRedeem recognizes when it is revoked.
expireTime := time.Now().Add(txWaitExpiration).UTC()
log.Debugf("Allowing until %v (%v) to locate redeem from %v (%v), match %v",
log.Debugf("Allowing until %v (%v) to locate redeem from %v (%v), match %v, tx %s (%s)",
expireTime, time.Until(expireTime), makerTaker(stepInfo.actor.isMaker),
stepInfo.step, matchID)
stepInfo.step, matchID, coinStr, stepInfo.asset.Symbol)

// Since we have to consider latency, run this as a coin waiter.
s.latencyQ.Wait(&wait.Waiter{
Expand Down

0 comments on commit 3979c68

Please sign in to comment.