mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 13:57:58 +00:00
fixed panic on empty remote read request (#4619)
This commit is contained in:
committed by
GitHub
parent
3219be2508
commit
afba48aeba
@@ -325,8 +325,8 @@ impl<Block, F, B, E, RA> StateBackend<B, E, Block, RA> for LightState<Block, F,
|
||||
keys: Option<Vec<StorageKey>>
|
||||
) {
|
||||
let keys = match keys {
|
||||
Some(keys) => keys,
|
||||
None => {
|
||||
Some(keys) if !keys.is_empty() => keys,
|
||||
_ => {
|
||||
warn!("Cannot subscribe to all keys on light client. Subscription rejected.");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user