mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 01:38:04 +00:00
babe: exponential backoff on missed blocks (#4397)
* fix srml-support compilation * babe: exponential backoff on missed blocks.
This commit is contained in:
committed by
Gavin Wood
parent
0ece5d9e17
commit
16047e30bf
@@ -364,8 +364,10 @@ impl<Value: Decode> Iterator for PrefixIterator<Value> {
|
||||
type Item = Value;
|
||||
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
match sp_io::storage::next_key(&self.previous_key) {
|
||||
Some(next_key) if next_key.starts_with(&self.prefix[..]) => {
|
||||
match sp_io::storage::next_key(&self.previous_key)
|
||||
.filter(|n| n.starts_with(&self.prefix[..]))
|
||||
{
|
||||
Some(next_key) => {
|
||||
let value = unhashed::get(&next_key);
|
||||
|
||||
if value.is_none() {
|
||||
|
||||
Reference in New Issue
Block a user