|
@@ -188,14 +188,14 @@ async fn consensus_task(
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- if confirmed.is_empty() {
|
|
|
|
|
- continue
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
if let Err(e) = node.registry.refresh(&node.validator).await {
|
|
if let Err(e) = node.registry.refresh(&node.validator).await {
|
|
|
error!(target: "darkfid", "Failed refreshing mining block templates: {e}")
|
|
error!(target: "darkfid", "Failed refreshing mining block templates: {e}")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if confirmed.is_empty() {
|
|
|
|
|
+ continue
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
let mut notif_blocks = Vec::with_capacity(confirmed.len());
|
|
let mut notif_blocks = Vec::with_capacity(confirmed.len());
|
|
|
for block in confirmed {
|
|
for block in confirmed {
|
|
|
notif_blocks.push(JsonValue::String(base64::encode(&serialize_async(&block).await)));
|
|
notif_blocks.push(JsonValue::String(base64::encode(&serialize_async(&block).await)));
|