MCPcopy Create free account
hub / github.com/BitVM/BitVM / broadcast_start_time

Method broadcast_start_time

bridge/src/client/client.rs:1066–1083  ·  view source on GitHub ↗
(&mut self, peg_out_graph_id: &String)

Source from the content-addressed store, hash-verified

1064 }
1065
1066 pub async fn broadcast_start_time(&mut self, peg_out_graph_id: &String) -> Result<Txid, Error> {
1067 let graph = Self::find_peg_out_or_fail(&mut self.data, peg_out_graph_id)?;
1068
1069 if self.operator_context.is_some() {
1070 let tx = graph
1071 .start_time(
1072 &self.esplora,
1073 self.operator_context.as_ref().unwrap(),
1074 &self.private_data.commitment_secrets
1075 [&self.operator_context.as_ref().unwrap().operator_public_key]
1076 [peg_out_graph_id][&CommitmentMessageId::StartTime],
1077 )
1078 .await?;
1079 self.broadcast_tx(&tx).await
1080 } else {
1081 Err(Error::Client(ClientError::OperatorContextNotDefined))
1082 }
1083 }
1084
1085 pub async fn broadcast_start_time_timeout(
1086 &mut self,

Calls 3

start_timeMethod · 0.80
as_refMethod · 0.80
broadcast_txMethod · 0.80