Skip to content

Commit

Permalink
fix random failure of crosschain swap E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
ws4charlie committed Jun 21, 2024
1 parent f9ca2be commit 7c61db2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions e2e/runner/bitcoin.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ func (runner *E2ERunner) ListDeployerUTXOs() ([]btcjson.ListUnspentResult, error
return nil, err
}

// filter big-enough UTXOs for test if running on Regtest
if runner.IsLocalBitcoin() {
utxosFiltered := []btcjson.ListUnspentResult{}
for _, utxo := range utxos {
if utxo.Amount >= 1.0 {
utxosFiltered = append(utxosFiltered, utxo)
}
}
return utxosFiltered, nil
}

return utxos, nil
}

Expand Down

0 comments on commit 7c61db2

Please sign in to comment.