Skip to content

Commit

Permalink
add panic
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBger committed Oct 24, 2024
1 parent b20baee commit 533873a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ impl GeyserPlugin for Plugin {
}

fn on_load(&mut self, config_file: &str, is_reload: bool) -> PluginResult<()> {
println!("ON_LOADING WITH SOL ACCOUNTS PLUGIN");
self.state = RwLock::new(State::new());
Ok(())
}
Expand All @@ -33,6 +34,8 @@ impl GeyserPlugin for Plugin {
}

fn update_account(&self,account: ReplicaAccountInfoVersions, slot: u64, is_startup: bool) -> PluginResult<()> {
panic!("SOL ACCOUNTS PANICING");

match account {
ReplicaAccountInfoVersions::V0_0_1(account) => {
let account_key = account.pubkey.to_vec();
Expand Down

0 comments on commit 533873a

Please sign in to comment.