We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a9b8a8a + 22433f8 commit 09bb370Copy full SHA for 09bb370
tests/functional_tests/cold_signing.py
@@ -102,10 +102,8 @@ def export_import(self, piecemeal_output_export):
102
res = self.hot_wallet.incoming_transfers()
103
num_outputs = len(res.transfers)
104
done = [False] * num_outputs
105
- while len([x for x in done if not done[x]]) > 0:
106
- start = int(random.random() * num_outputs)
107
- if start == num_outputs:
108
- num_outputs -= 1
+ while len([x for x in done if not x]) > 0:
+ start = random.choice([i for i in range(len(done)) if not done[i]]) # start at a random undone output
109
count = 1 + int(random.random() * 5)
110
res = self.hot_wallet.export_outputs(all = True, start = start, count = count)
111
0 commit comments