Skip to content

Commit

Permalink
Nits
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchengxu committed Dec 12, 2024
1 parent d363b88 commit 62d8f34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/subcoin-network/src/network_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ where
let _ = result_sender.send(send_transaction_result);
}
NetworkProcessorMessage::StartBlockSync => {
tracing::debug!("StartBlockSync signal received");
let sync_action = self.chain_sync.start_block_sync();
self.do_sync_action(sync_action);
}
Expand Down
2 changes: 2 additions & 0 deletions crates/subcoin-rpc/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ pub trait NetworkApi {
async fn network_status(&self) -> Result<Option<NetworkStatus>, Error>;

/// Trigger the block sync manually.
///
/// This API is unsafe and primarily for the local development.
#[method(name = "network_startBlockSync", with_extensions)]
fn network_start_block_sync(&self) -> Result<(), Error>;
}
Expand Down

0 comments on commit 62d8f34

Please sign in to comment.