File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,8 @@ func (h *AcrossMessageHandler) Listen(ctx context.Context) {
161161func (h * AcrossMessageHandler ) HandleMessage (m * message.Message ) (* proposal.Proposal , error ) {
162162 data := m .Data .(AcrossData )
163163
164+ log .Info ().Str ("depositId" , data .DepositId .String ()).Msgf ("Handling across message %+v" , data )
165+
164166 sourceChainID := h .chainID
165167 if data .Coordinator == peer .ID ("" ) {
166168 data .Coordinator = h .host .ID ()
@@ -289,8 +291,10 @@ func (h *AcrossMessageHandler) waitForConfirmations(
289291 return nil
290292 }
291293
294+ duration := time .Duration (uint64 (h .blocktime ) * (requiredConfirmations - confirmations .Uint64 ())
295+ log .Debug ().Msgf ("Waiting for tx %s for %s" , txHash , duration )
292296 // nolint:gosec
293- time .Sleep (time . Duration ( uint64 ( h . blocktime ) * ( requiredConfirmations - confirmations . Uint64 ()) ))
297+ time .Sleep (duration ))
294298 }
295299 }
296300}
You can’t perform that action at this time.
0 commit comments