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

Negative balance error while running check:data #49

Open
Arslan2 opened this issue Jan 19, 2022 · 4 comments
Open

Negative balance error while running check:data #49

Arslan2 opened this issue Jan 19, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Arslan2
Copy link

Arslan2 commented Jan 19, 2022

I built the docker file for mainnet using optimizations branch for rosetta-helium.
While running check:data I am facing this issue.

unable to process blocks: unable to process block: negative balance -300000000:&{Symbol:HNT Decimals:8 Metadata:map[]} for &{Address:1447S3QGHzvXc8PjFwrNsq4FkCG376FDNr8MwAEs5ZgxaSqRZpH SubAccount:<nil> Metadata:map[]} at &{Index:1156261 Hash:aOUCcjukjrg8T5wRiA41CaYERleJlPmQJXZHBn-3cfA}: unable to add block to storage aOUCcjukjrg8T5wRiA41CaYERleJlPmQJXZHBn-3cfA:1156261: unable to sync to 1156560

@syuan100 syuan100 self-assigned this Jan 19, 2022
@syuan100 syuan100 added the bug Something isn't working label Jan 19, 2022
@syuan100
Copy link
Collaborator

We are waiting on some PRs to be merged for blockchain-node and blockchain-core that should fix this issue. Please keep an eye on the #48 PR.

@Arslan2
Copy link
Author

Arslan2 commented Jan 26, 2022

@syuan100 Currently running optimization branch and still can see the negative balance issue. Here are the logs.

unable to process blocks: unable to process block: negative balance -123356765:&{Symbol:HNT Decimals:8 Metadata:map[]} for &{Address:141QXEmHUe4NMHDPN9wv97nyV4MQzy9XqLAraqZfVwEzgZztkP9 SubAccount: Metadata:map[]} at &{Index:1156270 Hash:oVtVaPsbuZkNfq8I1dmLCrd3XGRSnj7RCmiHF25S3g4}: unable to add block to storage oVtVaPsbuZkNfq8I1dmLCrd3XGRSnj7RCmiHF25S3g4:1156270: unable to sync to 1158942

@syuan100
Copy link
Collaborator

syuan100 commented Feb 1, 2022

@Arslan2 are you using the correct config? The start_index should be 1156322.

1156270 will yield a negative balance because there is not a complete ledger at that block.

@GeekArthur
Copy link

I will create another issue related to /block request failed, for the time being we will keep this open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants