We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 894b31a commit f8a01a0Copy full SHA for f8a01a0
lightning-block-sync/src/convert.rs
@@ -156,6 +156,7 @@ impl TryInto<(BlockHash, Option<u32>)> for JsonResponse {
156
}
157
158
159
+
160
impl TryInto<Txid> for JsonResponse {
161
type Error = std::io::Error;
162
fn try_into(self) -> std::io::Result<Txid> {
@@ -181,6 +182,8 @@ impl TryInto<Txid> for JsonResponse {
181
182
183
184
185
+/// Converts a JSON value into a transaction. WATCH OUT! this cannot be used form zero-input transactions
186
+/// (e.g. createrawtransaction). See https://github.com/rust-bitcoin/rust-bitcoincore-rpc/issues/197
187
impl TryInto<Transaction> for JsonResponse {
188
189
fn try_into(self) -> std::io::Result<Transaction> {
0 commit comments