Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destroy accounts #36

Merged
merged 9 commits into from
Jan 15, 2024
Merged

Destroy accounts #36

merged 9 commits into from
Jan 15, 2024

Conversation

cyberphysic4l
Copy link
Contributor

Fix the account destruction method, rename a few things for clarity and add some more logging.

Copy link
Contributor

@daria305 daria305 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I updated the scripts with destroy account, so that we try to spam after destroyin, but it can be tested only after we fix the indexer issue. The indexer problem happens for me too after first run of the destroy script.
The problem seems separate from evil-tools:

inx-indexer-1       | 2024-01-11T08:09:20Z      WARNING         /scratch/pkg/indexer/indexer.go:181 UNIQUE constraint failed: accounts.account_id
inx-indexer-1       | [0.037ms] [rows:0] INSERT INTO `accounts` (`account_id`,`output_id`,`amount`,`issuer`,`sender`,`address`,`created_at_slot`,`deleted_at_slot`,`committed`) VALUES ("<binary>","<binary>","1000000000","","","<binary>",48,0,false) 
inx-indexer-1       | 2024-01-11T08:09:20Z      ERROR           ListenToAcceptedTransactions failed: UNIQUE constraint failed: accounts.account_id 
inx-indexer-1       | 2024-01-11T08:09:20Z      INFO    Indexer Stopping AcceptedTransactions ... done 
inx-indexer-1       | 2024-01-11T08:09:20Z      WARNING Shutdown        App self-shutdown: Listening to AcceptedTransactions failed, error: UNIQUE constraint failed: accounts.account_id; waiting (max 300 seconds) to finish processing ... 
inx-indexer-1       | 2024-01-11T08:09:20Z      INFO    Indexer         Stopping API ... 
node-1-validator-1  | 2024-01-11T08:09:20Z      INFO                    Removed proxy indexer/v2 
inx-indexer-1       | 2024-01-11T08:09:20Z      INFO    Indexer         Stopping API ... done 
inx-indexer-1       | 2024-01-11T08:09:20Z      INFO    Indexer         Stopping LedgerUpdates ... done 
inx-indexer-1       | 2024-01-11T08:09:20Z      INFO    Indexer         Stopped Indexer 
inx-indexer-1       | 2024-01-11T08:09:20Z      INFO    INX             Stopped NodeBridge 
inx-indexer-1       | 2024-01-11T08:09:20Z      INFO    App             Shutdown complete! 
inx-validator-2-1   | 2024-01-11T08:09:20Z      DEBUG                   issued validation block: BlockID(0xa2e24fc01f35468dfac68ca89017e74493a6c275a7d7d4ac89bad38e584caffb30000000:48) - commitment CommitmentID(0x4236d47db038032dc23aa6752059803e2c8010cd1dc1257c68a664707899782926000000:38) 38 - latest finalized slot 38 - broadcast interval 1s 
inx-indexer-1 exited with code 0

components/eviltools/parse.go Show resolved Hide resolved
pkg/accountwallet/accountdestruction.go Outdated Show resolved Hide resolved
pkg/accountwallet/accountdestruction.go Outdated Show resolved Hide resolved
pkg/accountwallet/accountdestruction.go Outdated Show resolved Hide resolved
@daria305 daria305 merged commit ac72e2c into main Jan 15, 2024
3 checks passed
@daria305 daria305 deleted the feat/destroy-accounts branch January 15, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants