mirror of
https://github.com/monero-project/monero.git
synced 2025-12-09 00:21:28 +09:00
Merge pull request #10053
22433f8 functional_tests: fix piecemeal export in cold_signing (jeffro256)
This commit is contained in:
commit
09bb3705e0
@ -102,10 +102,8 @@ class ColdSigningTest():
|
|||||||
res = self.hot_wallet.incoming_transfers()
|
res = self.hot_wallet.incoming_transfers()
|
||||||
num_outputs = len(res.transfers)
|
num_outputs = len(res.transfers)
|
||||||
done = [False] * num_outputs
|
done = [False] * num_outputs
|
||||||
while len([x for x in done if not done[x]]) > 0:
|
while len([x for x in done if not x]) > 0:
|
||||||
start = int(random.random() * num_outputs)
|
start = random.choice([i for i in range(len(done)) if not done[i]]) # start at a random undone output
|
||||||
if start == num_outputs:
|
|
||||||
num_outputs -= 1
|
|
||||||
count = 1 + int(random.random() * 5)
|
count = 1 + int(random.random() * 5)
|
||||||
res = self.hot_wallet.export_outputs(all = True, start = start, count = count)
|
res = self.hot_wallet.export_outputs(all = True, start = start, count = count)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user