diff --git a/evm_loader/lib/src/rpc/validator_client.rs b/evm_loader/lib/src/rpc/validator_client.rs index e62860be1..d912a472f 100644 --- a/evm_loader/lib/src/rpc/validator_client.rs +++ b/evm_loader/lib/src/rpc/validator_client.rs @@ -115,6 +115,7 @@ impl Deref for CloneRpcClient { #[async_trait(?Send)] impl Rpc for CloneRpcClient { async fn get_last_deployed_slot(&self, _program_id: &Pubkey) -> ClientResult> { + // Update event impossible during CloneRpcClient work. Returns always 0 for caching. Ok(Some(0)) } async fn get_account_slice( diff --git a/evm_loader/lib/src/types/programs_cache.rs b/evm_loader/lib/src/types/programs_cache.rs index d99c57450..a72a9fbef 100644 --- a/evm_loader/lib/src/types/programs_cache.rs +++ b/evm_loader/lib/src/types/programs_cache.rs @@ -48,14 +48,14 @@ where fn get(&self, key: &KeyAccountCache) -> Option { self.table .read() - .expect("acc_hash_get_instance poisoned") + .expect("lock on read error ") .get(key) .cloned() } fn add(&self, key: KeyAccountCache, value: Value) { self.table .write() - .expect("PANIC, no space ") + .expect("lock on write error ") .insert(key, value); } }