diff --git a/src/daemon.rs b/src/daemon.rs index 254c168e..707ab6e4 100644 --- a/src/daemon.rs +++ b/src/daemon.rs @@ -597,7 +597,7 @@ impl Daemon { } pub fn broadcast_raw(&self, txhex: &str) -> Result { - let txid = self.request("sendrawtransaction", json!([txhex]))?; + let txid = self.request("sendrawtransaction", json!([txhex, 0]))?; Txid::from_hex(txid.as_str().chain_err(|| "non-string txid")?) .chain_err(|| "failed to parse txid") }