Skip to content

Commit

Permalink
Serialize transaction before sending
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharding committed Jun 13, 2024
1 parent 4127166 commit 2759dfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/client_sync/v17/raw_transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ macro_rules! impl_client_v17__sendrawtransaction {
&self,
tx: &bitcoin::Transaction,
) -> Result<SendRawTransaction> {
self.call("sendrawtransaction", &[into_json(tx)?])
let hex = bitcoin::consensus::encode::serialize_hex(tx);
self.call("sendrawtransaction", &[hex.into()])
}
}
};
Expand Down

0 comments on commit 2759dfb

Please sign in to comment.