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

Issue with warpToSlot #20

Open
metaproph3t opened this issue Apr 4, 2024 · 2 comments
Open

Issue with warpToSlot #20

metaproph3t opened this issue Apr 4, 2024 · 2 comments

Comments

@metaproph3t
Copy link

Whenever I try to use warpToSlot, I get the following error:

thread '<unnamed>' panicked at 'calculate_accounts_hash_with_verify mismatch. hashes: 3e1af2aBJsWEsBxeeqZBewv9oh2FXU9ed8ZL3MMWjFV6, GKot5hBsd81kMupNCXHaqbhv3huEbxAFMLnpcX2hniwn; lamports: 3000052405250674, 0; expected lamports: Some(3000026458271954), data source: IndexForTests, slot: 1', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/solana-runtime-1.16.7/src/accounts_db.rs:7307:13

Are there any tricks to using it? For example, I get the error when replacing this with a warpToSlot.

@kevinheavey
Copy link
Owner

That's weird, the tests for warpToSlot pass fine. Can you try reproducing in Rust with the same crate versions?

@beautyfree
Copy link

beautyfree commented Jul 26, 2024

same everytime when i try to use warpToSlot after few tests pass (some amount of slots passed)
and i use anchor, maybe it makes sense

thread '<unnamed>' panicked at /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/solana-accounts-db-1.18.0/src/accounts_db.rs:7335:13:
calculate_accounts_hash_with_verify mismatch. hashes: F428BnGD87Fxtt5QoqmvR5LcpePfYiwDdin4UTWcTdzn, GKot5hBsd81kMupNCXHaqbhv3huEbxAFMLnpcX2hniwn; lamports: 3020078839377492, 0; expected lamports: Some(3020076843456052), data source: IndexForTests, slot: 314336242

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

No branches or pull requests

3 participants