mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 19:55:54 +00:00
Add timeout to investigation section
This commit is contained in:
@@ -36,8 +36,10 @@ async function main() {
|
|||||||
console.log('Global Freeze enabled?',
|
console.log('Global Freeze enabled?',
|
||||||
((settings.account_data.Flags & lsfGlobalFreeze) === lsfGlobalFreeze))
|
((settings.account_data.Flags & lsfGlobalFreeze) === lsfGlobalFreeze))
|
||||||
|
|
||||||
// This is where you would investigate what prompted you to freeze the account
|
// Investigate ----------------------------------------------------------------
|
||||||
console.log(`${wallet.address} should be frozen now.`)
|
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 -------------------------------------------
|
// Now we disable the global freeze -------------------------------------------
|
||||||
const accountSetTx2 = {
|
const accountSetTx2 = {
|
||||||
|
|||||||
@@ -23,10 +23,12 @@ async function main() {
|
|||||||
// Sign and submit the AccountSet transaction to enable a global freeze -------
|
// Sign and submit the AccountSet transaction to enable a global freeze -------
|
||||||
console.log('Signing and submitting the transaction:', accountSetTx)
|
console.log('Signing and submitting the transaction:', accountSetTx)
|
||||||
await client.submitReliable(wallet, 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
|
// Investigate ----------------------------------------------------------------
|
||||||
console.log(`${wallet.address} should be frozen now.`)
|
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 -------------------------------------------
|
// Now we disable the global freeze -------------------------------------------
|
||||||
const accountSetTx2 = {
|
const accountSetTx2 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user