mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-30 15:39:49 +00:00
babe: exponential backoff on missed blocks (#4397)
* fix srml-support compilation * babe: exponential backoff on missed blocks.
This commit is contained in:
1 parent
0ece5d9e17
commit
16047e30bf
2 files changed
+21
-6
No files matched your search
@@ -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