mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 11:45:50 +00:00
Add timeout to investigation section
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user