Skip to content

Commit 1a64496

Browse files
committed
Adds TryInto<Transaction> docs with disclaimer
See #1061 (comment)
1 parent 4878951 commit 1a64496

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning-block-sync/src/convert.rs

+2
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ impl TryInto<Txid> for JsonResponse {
181181
}
182182
}
183183

184+
/// Converts a JSON value into a transaction. WATCH OUT! this cannot be used for zero-input transactions
185+
/// (e.g. createrawtransaction). See https://github.com/rust-bitcoin/rust-bitcoincore-rpc/issues/197
184186
impl TryInto<Transaction> for JsonResponse {
185187
type Error = std::io::Error;
186188
fn try_into(self) -> std::io::Result<Transaction> {

0 commit comments

Comments
 (0)