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

Method add_output

bridge/src/transactions/kick_off_timeout.rs:162–165  ·  view source on GitHub ↗
(&mut self, output_script_pubkey: ScriptBuf)

Source from the content-addressed store, hash-verified

160 }
161
162 pub fn add_output(&mut self, output_script_pubkey: ScriptBuf) {
163 let output_index = 1;
164 self.tx.output[output_index].script_pubkey = output_script_pubkey;
165 }
166
167 pub fn merge(&mut self, disprove: &KickOffTimeoutTransaction) {
168 merge_transactions(&mut self.tx, &disprove.tx);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected