Skip to content

Commit

Permalink
Change group name, add TODOs around expect()
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulksnv committed Aug 8, 2023
1 parent 7c71020 commit 44e1da0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions crates/sc-proof-of-time/src/clock_master.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ where
info!("clock_master::initialize: waiting for initialization ...");
let delay = tokio::time::Duration::from_secs(1);
let proofs = loop {
// TODO: Proper error handling or proof
let tip = get_consensus_tip(
self.client.clone(),
self.sync_oracle.clone(),
Expand All @@ -131,6 +132,7 @@ where

let proofs = tip.pot_pre_digest.proofs().cloned().unwrap_or_else(|| {
// Producing proofs starting from (genesis_slot + 1).
// TODO: Proper error handling or proof
let proof = self.proof_of_time.create(
PotSeed::from_block_hash(tip.block_hash),
Default::default(), // TODO: key from cmd line or BTC
Expand Down
1 change: 1 addition & 0 deletions crates/sc-proof-of-time/src/node_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ where
info!("pot_client::initialize: waiting for initialization ...");
let delay = tokio::time::Duration::from_secs(1);
let proofs = loop {
// TODO: Proper error handling or proof
let tip = get_consensus_tip(
self.client.clone(),
self.sync_oracle.clone(),
Expand Down
4 changes: 2 additions & 2 deletions crates/subspace-service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ where

task_manager.spawn_essential_handle().spawn_blocking(
"subspace-proof-of-time-clock-master",
Some("subspace-proof-of-time-clock-master"),
Some("pot"),
async move {
clock_master.run().await;
},
Expand All @@ -890,7 +890,7 @@ where
);
task_manager.spawn_essential_handle().spawn_blocking(
"subspace-proof-of-time-client",
Some("subspace-proof-of-time-client"),
Some("pot"),
async move {
pot_client.run().await;
},
Expand Down

0 comments on commit 44e1da0

Please sign in to comment.