From 2759dfbf1573b172a0d75df1f4a1290ca878138f Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 13 Jun 2024 12:19:07 +1000 Subject: [PATCH] Serialize transaction before sending --- client/src/client_sync/v17/raw_transactions.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/client_sync/v17/raw_transactions.rs b/client/src/client_sync/v17/raw_transactions.rs index 0473ad6..f571ca4 100644 --- a/client/src/client_sync/v17/raw_transactions.rs +++ b/client/src/client_sync/v17/raw_transactions.rs @@ -18,7 +18,8 @@ macro_rules! impl_client_v17__sendrawtransaction { &self, tx: &bitcoin::Transaction, ) -> Result { - self.call("sendrawtransaction", &[into_json(tx)?]) + let hex = bitcoin::consensus::encode::serialize_hex(tx); + self.call("sendrawtransaction", &[hex.into()]) } } };