We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 371d4ec commit 78fb920Copy full SHA for 78fb920
client/src/client_sync/v17/blockchain.rs
@@ -329,7 +329,10 @@ macro_rules! impl_client_v17__scan_tx_out_set {
329
}
330
331
/// Starts a scan of the UTXO set for specified descriptors.
332
- pub fn scan_tx_out_set_start(&self, scan_objects: &[&str]) -> Result<ScanTxOutSetStart> {
+ pub fn scan_tx_out_set_start(
333
+ &self,
334
+ scan_objects: &[&str],
335
+ ) -> Result<ScanTxOutSetStart> {
336
self.call("scantxoutset", &[into_json("start")?, into_json(scan_objects)?])
337
338
client/src/client_sync/v28/mod.rs
@@ -63,7 +63,6 @@ crate::impl_client_v17__scan_tx_out_set!();
63
crate::impl_client_v17__verify_chain!();
64
crate::impl_client_v17__verify_tx_out_proof!();
65
66
-
67
// == Control ==
68
crate::impl_client_v17__get_memory_info!();
69
crate::impl_client_v18__get_rpc_info!();
types/src/v17/blockchain/error.rs
@@ -548,20 +548,13 @@ impl fmt::Display for ScanTxOutSetError {
548
use ScanTxOutSetError::*;
549
550
match self {
551
- BestBlockHash(e) =>
552
- write_err!(f, "conversion of the `bestblock` field failed"; e),
553
- BlockHash(e) =>
554
- write_err!(f, "conversion of the `blockhash` field failed"; e),
555
- Txid(e) =>
556
- write_err!(f, "conversion of the `txid` field failed"; e),
557
- ScriptPubKey(e) =>
558
- write_err!(f, "conversion of the `scriptPubKey` field failed"; e),
559
- TotalAmount(e) =>
560
- write_err!(f, "conversion of the `total_amount` field failed"; e),
561
- Amount(e) =>
562
- write_err!(f, "conversion of the `amount` field failed"; e),
563
- Numeric(e) =>
564
- write_err!(f, "numeric"; e),
+ BestBlockHash(e) => write_err!(f, "conversion of the `bestblock` field failed"; e),
+ BlockHash(e) => write_err!(f, "conversion of the `blockhash` field failed"; e),
+ Txid(e) => write_err!(f, "conversion of the `txid` field failed"; e),
+ ScriptPubKey(e) => write_err!(f, "conversion of the `scriptPubKey` field failed"; e),
+ TotalAmount(e) => write_err!(f, "conversion of the `total_amount` field failed"; e),
+ Amount(e) => write_err!(f, "conversion of the `amount` field failed"; e),
+ Numeric(e) => write_err!(f, "numeric"; e),
565
566
567
types/src/v17/blockchain/into.rs
@@ -1,7 +1,7 @@
1
// SPDX-License-Identifier: CC0-1.0
2
3
use bitcoin::consensus::encode;
4
-use bitcoin::{block, hex, Block, BlockHash, CompactTarget, Txid, Weight, Work, ScriptBuf};
+use bitcoin::{block, hex, Block, BlockHash, CompactTarget, ScriptBuf, Txid, Weight, Work};
5
6
// TODO: Use explicit imports?
7
use super::*;
@@ -556,11 +556,8 @@ impl ScanTxOutSetStart {
pub fn into_model(self) -> Result<model::ScanTxOutSetStart, ScanTxOutSetError> {
use ScanTxOutSetError as E;
- let unspents = self
- .unspents
- .into_iter()
- .map(|u| u.into_model())
- .collect::<Result<Vec<_>, _>>()?;
+ let unspents =
+ self.unspents.into_iter().map(|u| u.into_model()).collect::<Result<Vec<_>, _>>()?;
let total_amount = Amount::from_btc(self.total_amount).map_err(E::TotalAmount)?;
types/src/v17/mod.rs
@@ -244,9 +244,9 @@ pub use self::{
244
GetMempoolDescendantsVerbose, GetMempoolEntry, GetMempoolInfo, GetMempoolInfoError,
245
GetRawMempool, GetRawMempoolVerbose, GetTxOut, GetTxOutError, GetTxOutSetInfo,
246
GetTxOutSetInfoError, MapMempoolEntryError, MempoolEntry, MempoolEntryError,
247
- MempoolEntryFees, MempoolEntryFeesError, PruneBlockchain, ScanTxOutSetAbort, ScanTxOutSetError,
248
- ScanTxOutSetStart, ScanTxOutSetStatus, ScanTxOutSetUnspent, Softfork, SoftforkReject,
249
- VerifyChain, VerifyTxOutProof,
+ MempoolEntryFees, MempoolEntryFeesError, PruneBlockchain, ScanTxOutSetAbort,
+ ScanTxOutSetError, ScanTxOutSetStart, ScanTxOutSetStatus, ScanTxOutSetUnspent, Softfork,
+ SoftforkReject, VerifyChain, VerifyTxOutProof,
250
},
251
control::{GetMemoryInfoStats, Locked, Logging},
252
generating::{Generate, GenerateToAddress},
types/src/v18/blockchain/into.rs
@@ -142,11 +142,8 @@ impl ScanTxOutSetStart {
142
143
144
145
146
147
148
149
150
151
152
types/src/v19/blockchain/into.rs
@@ -270,11 +270,8 @@ impl ScanTxOutSetStart {
270
271
let bestblock = self.best_block.parse::<BlockHash>().map_err(E::BestBlockHash)?;
272
273
274
275
276
277
278
279
280
types/src/v25/blockchain/into.rs
@@ -87,11 +87,8 @@ impl ScanTxOutSetStart {
87
88
89
90
91
92
93
94
95
96
97
types/src/v28/blockchain/into.rs
@@ -2,9 +2,7 @@
use bitcoin::{Amount, BlockHash, ScriptBuf, Txid};
-use super::{
- ScanTxOutSetError, ScanTxOutSetStart, ScanTxOutSetUnspent,
-};
+use super::{ScanTxOutSetError, ScanTxOutSetStart, ScanTxOutSetUnspent};
8
use crate::model;
9
10
impl ScanTxOutSetStart {
types/src/v28/mod.rs
@@ -259,9 +259,7 @@ mod wallet;
259
260
#[doc(inline)]
261
pub use self::{
262
- blockchain::{
263
- GetBlockchainInfo, ScanTxOutSetStart, ScanTxOutSetUnspent,
264
- },
+ blockchain::{GetBlockchainInfo, ScanTxOutSetStart, ScanTxOutSetUnspent},
265
control::Logging,
266
mining::GetMiningInfo,
267
network::GetNetworkInfo,
0 commit comments