Add timeout to investigation section

This commit is contained in:
Jackson Mills
2021-10-18 15:17:02 -07:00
parent e199745d49
commit 54492217a9
2 changed files with 9 additions and 5 deletions

View File

@@ -36,8 +36,10 @@ async function main() {
console.log('Global Freeze enabled?',
((settings.account_data.Flags & lsfGlobalFreeze) === lsfGlobalFreeze))
// This is where you would investigate what prompted you to freeze the account
console.log(`${wallet.address} should be frozen now.`)
// Investigate ----------------------------------------------------------------
console.log(
`You would investigate whatever prompted you to freeze the account now...`)
await new Promise(resolve => setTimeout(resolve, 3000))
// Now we disable the global freeze -------------------------------------------
const accountSetTx2 = {

View File

@@ -23,10 +23,12 @@ async function main() {
// Sign and submit the AccountSet transaction to enable a global freeze -------
console.log('Signing and submitting the transaction:', accountSetTx)
await client.submitReliable(wallet, accountSetTx)
console.log("Finished submitting!")
console.log(`Finished submitting! ${wallet.address} should be frozen now.`)
// This is where you would investigate what prompted you to freeze the account
console.log(`${wallet.address} should be frozen now.`)
// Investigate ----------------------------------------------------------------
console.log(
`You would investigate whatever prompted you to freeze the account now...`)
await new Promise(resolve => setTimeout(resolve, 3000))
// Now we disable the global freeze -------------------------------------------
const accountSetTx2 = {