Skip to content

feat: fill gaps in snapshots #37

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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ test-ledger/
minio
test.db
docker-compose.yml
*.txt
56 changes: 32 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ solana-pubkey = "2.3.0"
solana-transaction-status = "1.18.0"

light-concurrent-merkle-tree = "2.1.0"
light-batched-merkle-tree = "0.3.0"
light-merkle-tree-metadata = "0.3.0"
light-compressed-account = { version = "0.3.0", features = ["anchor"] }
light-batched-merkle-tree = { version = "0.3.0", git = "https://github.com/lightprotocol/light-protocol", rev = "341aae4dfc89a27913e6ff1af65572d626b0cc19" }
light-merkle-tree-metadata = { version = "0.3.0", git = "https://github.com/lightprotocol/light-protocol", rev = "341aae4dfc89a27913e6ff1af65572d626b0cc19" }
light-compressed-account = { version = "0.3.0", features = [
"anchor",
], git = "https://github.com/lightprotocol/light-protocol", rev = "341aae4dfc89a27913e6ff1af65572d626b0cc19" }
light-hasher = { version = "3.1.0" }

light-poseidon = "0.3.0"
Expand Down
6 changes: 5 additions & 1 deletion src/api/method/get_multiple_compressed_accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ pub async fn get_multiple_compressed_accounts(
}
fetch_account_from_addresses(conn, addresses).await?
}
_ => panic!("Either hashes or addresses must be provided"),
_ => {
return Err(PhotonApiError::ValidationError(
"Either hashes or addresses must be provided".to_string(),
));
}
};

Ok(GetMultipleCompressedAccountsResponse {
Expand Down
Loading
Loading