Skip to content

Commit

Permalink
add delay between legs
Browse files Browse the repository at this point in the history
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
  • Loading branch information
adecaro committed Sep 13, 2024
1 parent 9f316b5 commit c56fab5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integration/token/interop/views/htlc/exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ func (v *FastExchangeResponderView) Call(context view.Context) (interface{}, err
})
assert.NoError(err, "failed completing responder's leg (as initiator)")

time.Sleep(30 * time.Second)

// Claim initiator's script
_, err = view2.AsInitiatorCall(context, v, func(context view.Context) (interface{}, error) {
// Scan for the pre-image, this will be the signal that the initiator has claimed responder's script
Expand Down

0 comments on commit c56fab5

Please sign in to comment.