Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions client/src/client_sync/v17/blockchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,16 @@ macro_rules! impl_client_v17__savemempool {
};
}

/// Implements Bitcoin Core JSON-RPC API method `verifychain`
#[macro_export]
macro_rules! impl_client_v17__verifychain {
() => {
impl Client {
pub fn verify_chain(&self) -> Result<VerifyChain> { self.call("verifychain", &[]) }
}
};
}

/// Implements Bitcoin Core JSON-RPC API method `verifytxoutproof`
#[macro_export]
macro_rules! impl_client_v17__verifytxoutproof {
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v17/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ crate::impl_client_v17__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v17__savemempool!();
crate::impl_client_v17__verifychain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v18/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ crate::impl_client_v17__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v17__savemempool!();
crate::impl_client_v17__verifychain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v19/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ crate::impl_client_v17__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v17__savemempool!();
crate::impl_client_v17__verifychain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v20.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ crate::impl_client_v17__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v17__savemempool!();
crate::impl_client_v17__verifychain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v21/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ crate::impl_client_v17__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v17__savemempool!();
crate::impl_client_v17__verifychain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v22/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ crate::impl_client_v17__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v17__savemempool!();
crate::impl_client_v17__verifychain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v23/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ crate::impl_client_v17__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v23__savemempool!();
crate::impl_client_v17__verifychain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v24.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ crate::impl_client_v17__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v23__savemempool!();
crate::impl_client_v17__verifychain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v25.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ crate::impl_client_v17__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v23__savemempool!();
crate::impl_client_v17__verifychain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v26/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ crate::impl_client_v26__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v23__savemempool!();
crate::impl_client_v17__verifychain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v27.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ crate::impl_client_v26__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v23__savemempool!();
crate::impl_client_v17__verifychain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v28/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ crate::impl_client_v26__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v23__savemempool!();
crate::impl_client_v17__verifychain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
7 changes: 7 additions & 0 deletions integration_test/tests/blockchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,13 @@ fn blockchain__get_tx_out_proof__modelled() {
verify_tx_out_proof(&node).unwrap();
}

#[test]
fn blockchain__verify_chain() {
let node = Node::with_wallet(Wallet::None, &[]);

let _: Result<VerifyChain, _> = node.client.verify_chain();
}

fn verify_tx_out_proof(node: &Node) -> Result<(), client_sync::Error> {
let (_address, tx) = node.create_mined_transaction();
let txid = tx.compute_txid();
Expand Down
4 changes: 4 additions & 0 deletions types/src/v17/blockchain/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,10 @@ pub struct PruneBlockchain(
pub i64,
);

/// Result of JSON-RPC method `verifychain`.
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
pub struct VerifyChain(pub bool);

/// Result of JSON-RPC method `verifytxoutproof`.
///
/// > verifytxoutproof "proof"
Expand Down
2 changes: 1 addition & 1 deletion types/src/v17/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ pub use self::{
GetRawMempool, GetRawMempoolVerbose, GetTxOut, GetTxOutError, GetTxOutSetInfo,
GetTxOutSetInfoError, MapMempoolEntryError, MempoolEntry, MempoolEntryError,
MempoolEntryFees, MempoolEntryFeesError, PruneBlockchain, Softfork, SoftforkReject,
VerifyTxOutProof,
VerifyChain, VerifyTxOutProof,
},
control::{GetMemoryInfoStats, Locked, Logging},
generating::{Generate, GenerateToAddress},
Expand Down
4 changes: 2 additions & 2 deletions types/src/v18/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,6 @@ pub use crate::v17::{
RawTransaction, RawTransactionError, RawTransactionInput, RawTransactionOutput,
RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, SignFail, SignFailError,
SignMessage, SignRawTransaction, SignRawTransactionError, Softfork, SoftforkReject,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof, WalletCreateFundedPsbt,
WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyChain, VerifyTxOutProof,
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
};
4 changes: 2 additions & 2 deletions types/src/v19/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ pub use crate::v17::{
PruneBlockchain, RawTransactionError, RawTransactionInput, RawTransactionOutput,
RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, SignMessage, SignRawTransaction,
SignRawTransactionError, SoftforkReject, TestMempoolAccept, TransactionCategory, UploadTarget,
VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt,
WitnessUtxo,
VerifyChain, VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError,
WalletProcessPsbt, WitnessUtxo,
};
#[doc(inline)]
pub use crate::v18::{
Expand Down
4 changes: 2 additions & 2 deletions types/src/v20/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ pub use crate::{
RawTransactionError, RawTransactionInput, RawTransactionOutput, RescanBlockchain, SendMany,
SendRawTransaction, SendToAddress, SignMessage, SignRawTransaction,
SignRawTransactionError, SoftforkReject, TestMempoolAccept, TransactionCategory,
UploadTarget, VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError,
WalletProcessPsbt, WitnessUtxo,
UploadTarget, VerifyChain, VerifyTxOutProof, WalletCreateFundedPsbt,
WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
},
v18::{
ActiveCommand, AnalyzePsbt, AnalyzePsbtError, AnalyzePsbtInput, AnalyzePsbtInputMissing,
Expand Down
4 changes: 2 additions & 2 deletions types/src/v21/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ pub use crate::{
RawTransactionError, RawTransactionInput, RawTransactionOutput, RescanBlockchain, SendMany,
SendRawTransaction, SendToAddress, SignMessage, SignRawTransaction,
SignRawTransactionError, SoftforkReject, TestMempoolAccept, TransactionCategory,
UploadTarget, VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError,
WalletProcessPsbt, WitnessUtxo,
UploadTarget, VerifyChain, VerifyTxOutProof, WalletCreateFundedPsbt,
WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
},
v18::{
ActiveCommand, AnalyzePsbt, AnalyzePsbtError, AnalyzePsbtInput, AnalyzePsbtInputMissing,
Expand Down
2 changes: 1 addition & 1 deletion types/src/v22/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ pub use crate::{
LoadWallet, Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyChain, VerifyTxOutProof,
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
},
v18::{
Expand Down
2 changes: 1 addition & 1 deletion types/src/v23/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ pub use crate::{
LoadWallet, Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyChain, VerifyTxOutProof,
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
},
v18::{
Expand Down
2 changes: 1 addition & 1 deletion types/src/v24/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ pub use crate::{
LoadWallet, Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyChain, VerifyTxOutProof,
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
},
v18::{
Expand Down
2 changes: 1 addition & 1 deletion types/src/v25/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ pub use crate::{
Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyChain, VerifyTxOutProof,
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
},
v18::{
Expand Down
2 changes: 1 addition & 1 deletion types/src/v26/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ pub use crate::{
Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyChain, VerifyTxOutProof,
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
},
v18::{
Expand Down
2 changes: 1 addition & 1 deletion types/src/v27/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ pub use crate::{
Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyChain, VerifyTxOutProof,
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
},
v18::{
Expand Down
2 changes: 1 addition & 1 deletion types/src/v28/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ pub use crate::{
Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyChain, VerifyTxOutProof,
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
},
v18::{
Expand Down
2 changes: 1 addition & 1 deletion verify/src/method/v17.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub const METHODS: &[Method] = &[
Method::new_no_model("pruneblockchain", "PruneBlockchain", "prune_blockchain"),
Method::new_nothing("savemempool", "save_mempool"),
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
Method::new_bool("verifychain", "verify_chain"),
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
// control
Method::new_no_model("getmemoryinfo", "GetMemoryInfoStats", "get_memory_info"),
Expand Down
2 changes: 1 addition & 1 deletion verify/src/method/v18.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub const METHODS: &[Method] = &[
Method::new_no_model("pruneblockchain", "PruneBlockchain", "prune_blockchain"),
Method::new_nothing("savemempool", "save_mempool"),
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
Method::new_bool("verifychain", "verify_chain"),
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
// control
Method::new_no_model("getmemoryinfo", "GetMemoryInfoStats", "get_memory_info"),
Expand Down
2 changes: 1 addition & 1 deletion verify/src/method/v19.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub const METHODS: &[Method] = &[
Method::new_no_model("pruneblockchain", "PruneBlockchain", "prune_blockchain"),
Method::new_nothing("savemempool", "save_mempool"),
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
Method::new_bool("verifychain", "verify_chain"),
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
Method::new_no_model("getrpcinfo", "GetRpcInfo", "get_rpc_info"),
// control
Expand Down
2 changes: 1 addition & 1 deletion verify/src/method/v20.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub const METHODS: &[Method] = &[
Method::new_no_model("pruneblockchain", "PruneBlockchain", "prune_blockchain"),
Method::new_nothing("savemempool", "save_mempool"),
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
Method::new_bool("verifychain", "verify_chain"),
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
Method::new_no_model("getrpcinfo", "GetRpcInfo", "get_rpc_info"),
// control
Expand Down
2 changes: 1 addition & 1 deletion verify/src/method/v21.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub const METHODS: &[Method] = &[
Method::new_no_model("pruneblockchain", "PruneBlockchain", "prune_blockchain"),
Method::new_nothing("savemempool", "save_mempool"),
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
Method::new_bool("verifychain", "verify_chain"),
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
// control
Method::new_no_model("getmemoryinfo", "GetMemoryInfoStats", "get_memory_info"),
Expand Down
2 changes: 1 addition & 1 deletion verify/src/method/v22.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub const METHODS: &[Method] = &[
Method::new_no_model("pruneblockchain", "PruneBlockchain", "prune_blockchain"),
Method::new_nothing("savemempool", "save_mempool"),
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
Method::new_bool("verifychain", "verify_chain"),
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
// control
Method::new_no_model("getmemoryinfo", "GetMemoryInfoStats", "get_memory_info"),
Expand Down
2 changes: 1 addition & 1 deletion verify/src/method/v23.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub const METHODS: &[Method] = &[
Method::new_no_model("pruneblockchain", "PruneBlockchain", "prune_blockchain"),
Method::new_no_model("savemempool", "SaveMempool", "save_mempool"),
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
Method::new_bool("verifychain", "verify_chain"),
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
// control
Method::new_no_model("getmemoryinfo", "GetMemoryInfoStats", "get_memory_info"),
Expand Down
2 changes: 1 addition & 1 deletion verify/src/method/v24.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub const METHODS: &[Method] = &[
Method::new_no_model("pruneblockchain", "PruneBlockchain", "prune_blockchain"),
Method::new_no_model("savemempool", "SaveMempool", "save_mempool"),
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
Method::new_bool("verifychain", "verify_chain"),
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
// control
Method::new_no_model("getmemoryinfo", "GetMemoryInfoStats", "get_memory_info"),
Expand Down
2 changes: 1 addition & 1 deletion verify/src/method/v25.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub const METHODS: &[Method] = &[
Method::new_no_model("savemempool", "SaveMempool", "save_mempool"),
Method::new_modelled("scanblocks", "ScanBlocks", "scan_blocks"),
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
Method::new_bool("verifychain", "verify_chain"),
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
// control
Method::new_no_model("getmemoryinfo", "GetMemoryInfoStats", "get_memory_info"),
Expand Down
2 changes: 1 addition & 1 deletion verify/src/method/v26.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub const METHODS: &[Method] = &[
Method::new_no_model("savemempool", "SaveMempool", "save_mempool"),
Method::new_modelled("scanblocks", "ScanBlocks", "scan_blocks"),
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
Method::new_bool("verifychain", "verify_chain"),
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
// control
Method::new_no_model("getmemoryinfo", "GetMemoryInfoStats", "get_memory_info"),
Expand Down
2 changes: 1 addition & 1 deletion verify/src/method/v27.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub const METHODS: &[Method] = &[
Method::new_no_model("savemempool", "SaveMempool", "save_mempool"),
Method::new_modelled("scanblocks", "ScanBlocks", "scan_blocks"),
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
Method::new_bool("verifychain", "verify_chain"),
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
Method::new_no_model("getrpcinfo", "GetRpcInfo", "get_rpc_info"),
// control
Expand Down
2 changes: 1 addition & 1 deletion verify/src/method/v28.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub const METHODS: &[Method] = &[
Method::new_no_model("savemempool", "SaveMempool", "save_mempool"),
Method::new_modelled("scanblocks", "ScanBlocks", "scan_blocks"),
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
Method::new_bool("verifychain", "verify_chain"),
Method::new_no_model("verifychain", "VerifyChain", "verify_chain"),
Method::new_modelled("verifytxoutproof", "VerifyTxOutProof", "verify_tx_out_proof"),
Method::new_no_model("getrpcinfo", "GetRpcInfo", "get_rpc_info"),
// controll
Expand Down