mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 16:47:57 +00:00
Fix wait_for_blocks counting blocks that didn't go through consensus (#6850)
* Initial commit Forked at:cde60b871eParent branch: origin/master * WIP Forked at:cde60b871eParent branch: origin/master
This commit is contained in:
@@ -384,9 +384,11 @@ where
|
||||
|
||||
Box::pin(async move {
|
||||
while let Some(notification) = import_notification_stream.next().await {
|
||||
blocks.insert(notification.hash);
|
||||
if blocks.len() == count {
|
||||
break;
|
||||
if notification.is_new_best {
|
||||
blocks.insert(notification.hash);
|
||||
if blocks.len() == count {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user