Skip to content

Commit b948ccf

Browse files
authored
wait for account witnesses to be published before shutting down (#416)
1 parent 0dc9add commit b948ccf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/HavenoClient.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4140,13 +4140,16 @@ async function prepareForTrading(numTrades: number, ...havenods: HavenoClient[])
41404140
}
41414141
}
41424142

4143-
// create payment account for each asset code
4143+
// create payment account for each fixed price asset code
41444144
for (const havenod of havenods) {
41454145
for (const assetCode of TestConfig.assetCodes.concat(TestConfig.fixedPriceAssetCodes)) {
41464146
if (await hasPaymentAccount({trader: havenod, assetCode: assetCode})) continue; // skip if exists
41474147
await createPaymentAccount(havenod, assetCode);
41484148
}
41494149
}
4150+
4151+
// TODO: waiting for account witnesses to be published so they're not lost before shutting down. should be part of account creation?
4152+
await wait(1000);
41504153
}
41514154

41524155
async function getWallet(havenod: HavenoClient) {

0 commit comments

Comments
 (0)