Skip to content

Commit ae286f1

Browse files
committed
Implement verifychain method and test
1 parent b905c5b commit ae286f1

File tree

39 files changed

+61
-28
lines changed

39 files changed

+61
-28
lines changed

client/src/client_sync/v17/blockchain.rs

+10
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,16 @@ macro_rules! impl_client_v17__savemempool {
318318
};
319319
}
320320

321+
/// Implements Bitcoin Core JSON-RPC API method `verifychain`
322+
#[macro_export]
323+
macro_rules! impl_client_v17__verifychain {
324+
() => {
325+
impl Client {
326+
pub fn verify_chain(&self) -> Result<VerifyChain> { self.call("verifychain", &[]) }
327+
}
328+
};
329+
}
330+
321331
/// Implements Bitcoin Core JSON-RPC API method `verifytxoutproof`
322332
#[macro_export]
323333
macro_rules! impl_client_v17__verifytxoutproof {

client/src/client_sync/v17/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ crate::impl_client_v17__gettxoutsetinfo!();
5050
crate::impl_client_v17__preciousblock!();
5151
crate::impl_client_v17__pruneblockchain!();
5252
crate::impl_client_v17__savemempool!();
53+
crate::impl_client_v17__verifychain!();
5354
crate::impl_client_v17__verifytxoutproof!();
5455

5556
// == Control ==

client/src/client_sync/v18/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ crate::impl_client_v17__gettxoutsetinfo!();
4444
crate::impl_client_v17__preciousblock!();
4545
crate::impl_client_v17__pruneblockchain!();
4646
crate::impl_client_v17__savemempool!();
47+
crate::impl_client_v17__verifychain!();
4748
crate::impl_client_v17__verifytxoutproof!();
4849

4950
// == Control ==

client/src/client_sync/v19/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ crate::impl_client_v17__gettxoutsetinfo!();
4545
crate::impl_client_v17__preciousblock!();
4646
crate::impl_client_v17__pruneblockchain!();
4747
crate::impl_client_v17__savemempool!();
48+
crate::impl_client_v17__verifychain!();
4849
crate::impl_client_v17__verifytxoutproof!();
4950

5051
// == Control ==

client/src/client_sync/v20.rs

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ crate::impl_client_v17__gettxoutsetinfo!();
4242
crate::impl_client_v17__preciousblock!();
4343
crate::impl_client_v17__pruneblockchain!();
4444
crate::impl_client_v17__savemempool!();
45+
crate::impl_client_v17__verifychain!();
4546
crate::impl_client_v17__verifytxoutproof!();
4647

4748
// == Control ==

client/src/client_sync/v21/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ crate::impl_client_v17__gettxoutsetinfo!();
4444
crate::impl_client_v17__preciousblock!();
4545
crate::impl_client_v17__pruneblockchain!();
4646
crate::impl_client_v17__savemempool!();
47+
crate::impl_client_v17__verifychain!();
4748
crate::impl_client_v17__verifytxoutproof!();
4849

4950
// == Control ==

client/src/client_sync/v22/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ crate::impl_client_v17__gettxoutsetinfo!();
4545
crate::impl_client_v17__preciousblock!();
4646
crate::impl_client_v17__pruneblockchain!();
4747
crate::impl_client_v17__savemempool!();
48+
crate::impl_client_v17__verifychain!();
4849
crate::impl_client_v17__verifytxoutproof!();
4950

5051
// == Control ==

client/src/client_sync/v23/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ crate::impl_client_v17__gettxoutsetinfo!();
4646
crate::impl_client_v17__preciousblock!();
4747
crate::impl_client_v17__pruneblockchain!();
4848
crate::impl_client_v23__savemempool!();
49+
crate::impl_client_v17__verifychain!();
4950
crate::impl_client_v17__verifytxoutproof!();
5051

5152
// == Control ==

client/src/client_sync/v24.rs

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ crate::impl_client_v17__gettxoutsetinfo!();
4242
crate::impl_client_v17__preciousblock!();
4343
crate::impl_client_v17__pruneblockchain!();
4444
crate::impl_client_v23__savemempool!();
45+
crate::impl_client_v17__verifychain!();
4546
crate::impl_client_v17__verifytxoutproof!();
4647

4748
// == Control ==

client/src/client_sync/v25.rs

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ crate::impl_client_v17__gettxoutsetinfo!();
4242
crate::impl_client_v17__preciousblock!();
4343
crate::impl_client_v17__pruneblockchain!();
4444
crate::impl_client_v23__savemempool!();
45+
crate::impl_client_v17__verifychain!();
4546
crate::impl_client_v17__verifytxoutproof!();
4647

4748
// == Control ==

client/src/client_sync/v26/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ crate::impl_client_v26__gettxoutsetinfo!();
4646
crate::impl_client_v17__preciousblock!();
4747
crate::impl_client_v17__pruneblockchain!();
4848
crate::impl_client_v23__savemempool!();
49+
crate::impl_client_v17__verifychain!();
4950
crate::impl_client_v17__verifytxoutproof!();
5051

5152
// == Control ==

client/src/client_sync/v27.rs

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ crate::impl_client_v26__gettxoutsetinfo!();
4242
crate::impl_client_v17__preciousblock!();
4343
crate::impl_client_v17__pruneblockchain!();
4444
crate::impl_client_v23__savemempool!();
45+
crate::impl_client_v17__verifychain!();
4546
crate::impl_client_v17__verifytxoutproof!();
4647

4748
// == Control ==

client/src/client_sync/v28/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ crate::impl_client_v26__gettxoutsetinfo!();
4444
crate::impl_client_v17__preciousblock!();
4545
crate::impl_client_v17__pruneblockchain!();
4646
crate::impl_client_v23__savemempool!();
47+
crate::impl_client_v17__verifychain!();
4748
crate::impl_client_v17__verifytxoutproof!();
4849

4950
// == Control ==

integration_test/tests/blockchain.rs

+7
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,13 @@ fn blockchain__get_tx_out_proof__modelled() {
321321
verify_tx_out_proof(&node).unwrap();
322322
}
323323

324+
#[test]
325+
fn blockchain__verify_chain() {
326+
let node = Node::with_wallet(Wallet::None, &[]);
327+
328+
let _: Result<VerifyChain, _> = node.client.verify_chain();
329+
}
330+
324331
fn verify_tx_out_proof(node: &Node) -> Result<(), client_sync::Error> {
325332
let (_address, tx) = node.create_mined_transaction();
326333
let txid = tx.compute_txid();

types/src/v17/blockchain/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,10 @@ pub struct PruneBlockchain(
650650
pub i64,
651651
);
652652

653+
/// Result of JSON-RPC method `verifychain`.
654+
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
655+
pub struct VerifyChain(pub bool);
656+
653657
/// Result of JSON-RPC method `verifytxoutproof`.
654658
///
655659
/// > verifytxoutproof "proof"

types/src/v17/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ pub use self::{
244244
GetRawMempool, GetRawMempoolVerbose, GetTxOut, GetTxOutError, GetTxOutSetInfo,
245245
GetTxOutSetInfoError, MapMempoolEntryError, MempoolEntry, MempoolEntryError,
246246
MempoolEntryFees, MempoolEntryFeesError, PruneBlockchain, Softfork, SoftforkReject,
247-
VerifyTxOutProof,
247+
VerifyChain, VerifyTxOutProof,
248248
},
249249
control::{GetMemoryInfoStats, Locked, Logging},
250250
generating::{Generate, GenerateToAddress},

types/src/v18/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,6 @@ pub use crate::v17::{
267267
RawTransaction, RawTransactionError, RawTransactionInput, RawTransactionOutput,
268268
RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, SignFail, SignFailError,
269269
SignMessage, SignRawTransaction, SignRawTransactionError, Softfork, SoftforkReject,
270-
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof, WalletCreateFundedPsbt,
271-
WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
270+
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyChain, VerifyTxOutProof,
271+
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
272272
};

types/src/v19/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ pub use crate::v17::{
268268
PruneBlockchain, RawTransactionError, RawTransactionInput, RawTransactionOutput,
269269
RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, SignMessage, SignRawTransaction,
270270
SignRawTransactionError, SoftforkReject, TestMempoolAccept, TransactionCategory, UploadTarget,
271-
VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt,
272-
WitnessUtxo,
271+
VerifyChain, VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError,
272+
WalletProcessPsbt, WitnessUtxo,
273273
};
274274
#[doc(inline)]
275275
pub use crate::v18::{

types/src/v20/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ pub use crate::{
261261
RawTransactionError, RawTransactionInput, RawTransactionOutput, RescanBlockchain, SendMany,
262262
SendRawTransaction, SendToAddress, SignMessage, SignRawTransaction,
263263
SignRawTransactionError, SoftforkReject, TestMempoolAccept, TransactionCategory,
264-
UploadTarget, VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError,
265-
WalletProcessPsbt, WitnessUtxo,
264+
UploadTarget, VerifyChain, VerifyTxOutProof, WalletCreateFundedPsbt,
265+
WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
266266
},
267267
v18::{
268268
ActiveCommand, AnalyzePsbt, AnalyzePsbtError, AnalyzePsbtInput, AnalyzePsbtInputMissing,

types/src/v21/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ pub use crate::{
267267
RawTransactionError, RawTransactionInput, RawTransactionOutput, RescanBlockchain, SendMany,
268268
SendRawTransaction, SendToAddress, SignMessage, SignRawTransaction,
269269
SignRawTransactionError, SoftforkReject, TestMempoolAccept, TransactionCategory,
270-
UploadTarget, VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError,
271-
WalletProcessPsbt, WitnessUtxo,
270+
UploadTarget, VerifyChain, VerifyTxOutProof, WalletCreateFundedPsbt,
271+
WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
272272
},
273273
v18::{
274274
ActiveCommand, AnalyzePsbt, AnalyzePsbtError, AnalyzePsbtInput, AnalyzePsbtInputMissing,

types/src/v22/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ pub use crate::{
281281
LoadWallet, Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
282282
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
283283
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
284-
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
284+
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyChain, VerifyTxOutProof,
285285
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
286286
},
287287
v18::{

types/src/v23/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ pub use crate::{
276276
LoadWallet, Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
277277
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
278278
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
279-
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
279+
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyChain, VerifyTxOutProof,
280280
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
281281
},
282282
v18::{

types/src/v24/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ pub use crate::{
277277
LoadWallet, Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
278278
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
279279
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
280-
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
280+
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyChain, VerifyTxOutProof,
281281
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
282282
},
283283
v18::{

types/src/v25/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ pub use crate::{
274274
Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
275275
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
276276
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
277-
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
277+
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyChain, VerifyTxOutProof,
278278
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
279279
},
280280
v18::{

types/src/v26/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ pub use crate::{
294294
Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
295295
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
296296
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
297-
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
297+
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyChain, VerifyTxOutProof,
298298
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
299299
},
300300
v18::{

types/src/v27/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ pub use crate::{
278278
Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
279279
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
280280
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
281-
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
281+
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyChain, VerifyTxOutProof,
282282
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
283283
},
284284
v18::{

types/src/v28/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ pub use crate::{
285285
Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
286286
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
287287
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
288-
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
288+
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyChain, VerifyTxOutProof,
289289
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
290290
},
291291
v18::{

verify/src/method/v17.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub const METHODS: &[Method] = &[
3333
Method::new_no_model("pruneblockchain", "PruneBlockchain", "prune_blockchain"),
3434
Method::new_nothing("savemempool", "save_mempool"),
3535
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
36-
Method::new_bool("verifychain", "verify_chain"),
36+
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
3737
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
3838
// control
3939
Method::new_no_model("getmemoryinfo", "GetMemoryInfoStats", "get_memory_info"),

verify/src/method/v18.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub const METHODS: &[Method] = &[
3333
Method::new_no_model("pruneblockchain", "PruneBlockchain", "prune_blockchain"),
3434
Method::new_nothing("savemempool", "save_mempool"),
3535
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
36-
Method::new_bool("verifychain", "verify_chain"),
36+
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
3737
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
3838
// control
3939
Method::new_no_model("getmemoryinfo", "GetMemoryInfoStats", "get_memory_info"),

verify/src/method/v19.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub const METHODS: &[Method] = &[
3434
Method::new_no_model("pruneblockchain", "PruneBlockchain", "prune_blockchain"),
3535
Method::new_nothing("savemempool", "save_mempool"),
3636
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
37-
Method::new_bool("verifychain", "verify_chain"),
37+
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
3838
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
3939
Method::new_no_model("getrpcinfo", "GetRpcInfo", "get_rpc_info"),
4040
// control

verify/src/method/v20.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub const METHODS: &[Method] = &[
3434
Method::new_no_model("pruneblockchain", "PruneBlockchain", "prune_blockchain"),
3535
Method::new_nothing("savemempool", "save_mempool"),
3636
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
37-
Method::new_bool("verifychain", "verify_chain"),
37+
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
3838
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
3939
Method::new_no_model("getrpcinfo", "GetRpcInfo", "get_rpc_info"),
4040
// control

verify/src/method/v21.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub const METHODS: &[Method] = &[
3434
Method::new_no_model("pruneblockchain", "PruneBlockchain", "prune_blockchain"),
3535
Method::new_nothing("savemempool", "save_mempool"),
3636
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
37-
Method::new_bool("verifychain", "verify_chain"),
37+
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
3838
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
3939
// control
4040
Method::new_no_model("getmemoryinfo", "GetMemoryInfoStats", "get_memory_info"),

verify/src/method/v22.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub const METHODS: &[Method] = &[
3434
Method::new_no_model("pruneblockchain", "PruneBlockchain", "prune_blockchain"),
3535
Method::new_nothing("savemempool", "save_mempool"),
3636
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
37-
Method::new_bool("verifychain", "verify_chain"),
37+
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
3838
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
3939
// control
4040
Method::new_no_model("getmemoryinfo", "GetMemoryInfoStats", "get_memory_info"),

verify/src/method/v23.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub const METHODS: &[Method] = &[
3636
Method::new_no_model("pruneblockchain", "PruneBlockchain", "prune_blockchain"),
3737
Method::new_no_model("savemempool", "SaveMempool", "save_mempool"),
3838
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
39-
Method::new_bool("verifychain", "verify_chain"),
39+
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
4040
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
4141
// control
4242
Method::new_no_model("getmemoryinfo", "GetMemoryInfoStats", "get_memory_info"),

verify/src/method/v24.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub const METHODS: &[Method] = &[
3737
Method::new_no_model("pruneblockchain", "PruneBlockchain", "prune_blockchain"),
3838
Method::new_no_model("savemempool", "SaveMempool", "save_mempool"),
3939
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
40-
Method::new_bool("verifychain", "verify_chain"),
40+
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
4141
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
4242
// control
4343
Method::new_no_model("getmemoryinfo", "GetMemoryInfoStats", "get_memory_info"),

verify/src/method/v25.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub const METHODS: &[Method] = &[
3838
Method::new_no_model("savemempool", "SaveMempool", "save_mempool"),
3939
Method::new_modelled("scanblocks", "ScanBlocks", "scan_blocks"),
4040
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
41-
Method::new_bool("verifychain", "verify_chain"),
41+
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
4242
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
4343
// control
4444
Method::new_no_model("getmemoryinfo", "GetMemoryInfoStats", "get_memory_info"),

verify/src/method/v26.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub const METHODS: &[Method] = &[
4242
Method::new_no_model("savemempool", "SaveMempool", "save_mempool"),
4343
Method::new_modelled("scanblocks", "ScanBlocks", "scan_blocks"),
4444
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
45-
Method::new_bool("verifychain", "verify_chain"),
45+
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
4646
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
4747
// control
4848
Method::new_no_model("getmemoryinfo", "GetMemoryInfoStats", "get_memory_info"),

verify/src/method/v27.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub const METHODS: &[Method] = &[
4242
Method::new_no_model("savemempool", "SaveMempool", "save_mempool"),
4343
Method::new_modelled("scanblocks", "ScanBlocks", "scan_blocks"),
4444
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
45-
Method::new_bool("verifychain", "verify_chain"),
45+
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
4646
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
4747
Method::new_no_model("getrpcinfo", "GetRpcInfo", "get_rpc_info"),
4848
// control

verify/src/method/v28.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub const METHODS: &[Method] = &[
4242
Method::new_no_model("savemempool", "SaveMempool", "save_mempool"),
4343
Method::new_modelled("scanblocks", "ScanBlocks", "scan_blocks"),
4444
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
45-
Method::new_bool("verifychain", "verify_chain"),
45+
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
4646
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
4747
Method::new_no_model("getrpcinfo", "GetRpcInfo", "get_rpc_info"),
4848
// controll

0 commit comments

Comments
 (0)