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

Method add_output

bridge/src/transactions/start_time_timeout.rs:224–227  ·  view source on GitHub ↗
(&mut self, output_script_pubkey: ScriptBuf)

Source from the content-addressed store, hash-verified

222 }
223
224 pub fn add_output(&mut self, output_script_pubkey: ScriptBuf) {
225 let output_index = 1;
226 self.tx.output[output_index].script_pubkey = output_script_pubkey;
227 }
228
229 pub fn merge(&mut self, burn: &StartTimeTimeoutTransaction) {
230 merge_transactions(&mut self.tx, &burn.tx);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected