From 2408e45a7154e487e08ee24c591e4b23729d1a5d Mon Sep 17 00:00:00 2001 From: GideonBature Date: Thu, 29 May 2025 09:35:33 +0100 Subject: [PATCH] Implement getconnectioncount method and test --- client/src/client_sync/v17/mod.rs | 1 + client/src/client_sync/v17/network.rs | 12 +++++++++ client/src/client_sync/v18/mod.rs | 1 + client/src/client_sync/v19/mod.rs | 1 + client/src/client_sync/v20/mod.rs | 1 + client/src/client_sync/v21/mod.rs | 1 + client/src/client_sync/v22/mod.rs | 1 + client/src/client_sync/v23/mod.rs | 1 + client/src/client_sync/v24/mod.rs | 1 + client/src/client_sync/v25/mod.rs | 1 + client/src/client_sync/v26/mod.rs | 1 + client/src/client_sync/v27/mod.rs | 1 + client/src/client_sync/v28/mod.rs | 1 + client/src/client_sync/v29/mod.rs | 1 + integration_test/tests/network.rs | 6 +++++ types/src/v17/mod.rs | 6 ++--- types/src/v17/network/mod.rs | 8 ++++++ types/src/v18/mod.rs | 4 +-- types/src/v19/mod.rs | 38 +++++++++++++-------------- types/src/v20/mod.rs | 35 ++++++++++++------------ types/src/v21/mod.rs | 35 ++++++++++++------------ types/src/v22/mod.rs | 35 ++++++++++++------------ types/src/v23/mod.rs | 8 +++--- types/src/v24/mod.rs | 8 +++--- types/src/v25/mod.rs | 8 +++--- types/src/v26/mod.rs | 8 +++--- types/src/v27/mod.rs | 8 +++--- types/src/v28/mod.rs | 22 ++++++++-------- types/src/v29/mod.rs | 22 ++++++++-------- verify/src/method/v17.rs | 2 +- verify/src/method/v18.rs | 2 +- verify/src/method/v19.rs | 2 +- verify/src/method/v20.rs | 2 +- verify/src/method/v21.rs | 2 +- verify/src/method/v22.rs | 2 +- verify/src/method/v23.rs | 2 +- verify/src/method/v24.rs | 2 +- verify/src/method/v25.rs | 2 +- verify/src/method/v26.rs | 2 +- verify/src/method/v27.rs | 2 +- verify/src/method/v28.rs | 2 +- verify/src/method/v29.rs | 2 +- 42 files changed, 172 insertions(+), 130 deletions(-) diff --git a/client/src/client_sync/v17/mod.rs b/client/src/client_sync/v17/mod.rs index d4edf062..5af9d2f5 100644 --- a/client/src/client_sync/v17/mod.rs +++ b/client/src/client_sync/v17/mod.rs @@ -75,6 +75,7 @@ crate::impl_client_v17__add_node!(); crate::impl_client_v17__clear_banned!(); crate::impl_client_v17__disconnect_node!(); crate::impl_client_v17__get_added_node_info!(); +crate::impl_client_v17__get_connection_count!(); crate::impl_client_v17__get_net_totals!(); crate::impl_client_v17__get_network_info!(); crate::impl_client_v17__get_peer_info!(); diff --git a/client/src/client_sync/v17/network.rs b/client/src/client_sync/v17/network.rs index d99a2721..afd9f257 100644 --- a/client/src/client_sync/v17/network.rs +++ b/client/src/client_sync/v17/network.rs @@ -69,6 +69,18 @@ macro_rules! impl_client_v17__get_added_node_info { }; } +/// Implements Bitcoin Core JSON-RPC API method `getconnectioncount` +#[macro_export] +macro_rules! impl_client_v17__get_connection_count { + () => { + impl Client { + pub fn get_connection_count(&self) -> Result { + self.call("getconnectioncount", &[]) + } + } + }; +} + /// Implements Bitcoin Core JSON-RPC API method `getnettotals` #[macro_export] macro_rules! impl_client_v17__get_net_totals { diff --git a/client/src/client_sync/v18/mod.rs b/client/src/client_sync/v18/mod.rs index 5c0c49a0..e6931846 100644 --- a/client/src/client_sync/v18/mod.rs +++ b/client/src/client_sync/v18/mod.rs @@ -79,6 +79,7 @@ crate::impl_client_v17__add_node!(); crate::impl_client_v17__clear_banned!(); crate::impl_client_v17__disconnect_node!(); crate::impl_client_v17__get_added_node_info!(); +crate::impl_client_v17__get_connection_count!(); crate::impl_client_v17__get_net_totals!(); crate::impl_client_v17__get_network_info!(); crate::impl_client_v18__get_node_addresses!(); diff --git a/client/src/client_sync/v19/mod.rs b/client/src/client_sync/v19/mod.rs index f1bad9c5..04caf1b8 100644 --- a/client/src/client_sync/v19/mod.rs +++ b/client/src/client_sync/v19/mod.rs @@ -77,6 +77,7 @@ crate::impl_client_v17__add_node!(); crate::impl_client_v17__clear_banned!(); crate::impl_client_v17__disconnect_node!(); crate::impl_client_v17__get_added_node_info!(); +crate::impl_client_v17__get_connection_count!(); crate::impl_client_v17__get_net_totals!(); crate::impl_client_v17__get_network_info!(); crate::impl_client_v18__get_node_addresses!(); diff --git a/client/src/client_sync/v20/mod.rs b/client/src/client_sync/v20/mod.rs index f7fddc46..bebb6e6c 100644 --- a/client/src/client_sync/v20/mod.rs +++ b/client/src/client_sync/v20/mod.rs @@ -74,6 +74,7 @@ crate::impl_client_v17__add_node!(); crate::impl_client_v17__clear_banned!(); crate::impl_client_v17__disconnect_node!(); crate::impl_client_v17__get_added_node_info!(); +crate::impl_client_v17__get_connection_count!(); crate::impl_client_v17__get_net_totals!(); crate::impl_client_v17__get_network_info!(); crate::impl_client_v18__get_node_addresses!(); diff --git a/client/src/client_sync/v21/mod.rs b/client/src/client_sync/v21/mod.rs index e43d8b0b..0c0a7bc0 100644 --- a/client/src/client_sync/v21/mod.rs +++ b/client/src/client_sync/v21/mod.rs @@ -76,6 +76,7 @@ crate::impl_client_v17__add_node!(); crate::impl_client_v17__clear_banned!(); crate::impl_client_v17__disconnect_node!(); crate::impl_client_v17__get_added_node_info!(); +crate::impl_client_v17__get_connection_count!(); crate::impl_client_v17__get_net_totals!(); crate::impl_client_v17__get_network_info!(); crate::impl_client_v18__get_node_addresses!(); diff --git a/client/src/client_sync/v22/mod.rs b/client/src/client_sync/v22/mod.rs index dd58f321..9d3e3330 100644 --- a/client/src/client_sync/v22/mod.rs +++ b/client/src/client_sync/v22/mod.rs @@ -76,6 +76,7 @@ crate::impl_client_v17__add_node!(); crate::impl_client_v17__clear_banned!(); crate::impl_client_v17__disconnect_node!(); crate::impl_client_v17__get_added_node_info!(); +crate::impl_client_v17__get_connection_count!(); crate::impl_client_v17__get_net_totals!(); crate::impl_client_v17__get_network_info!(); crate::impl_client_v18__get_node_addresses!(); diff --git a/client/src/client_sync/v23/mod.rs b/client/src/client_sync/v23/mod.rs index 8e78122e..c7b2b518 100644 --- a/client/src/client_sync/v23/mod.rs +++ b/client/src/client_sync/v23/mod.rs @@ -78,6 +78,7 @@ crate::impl_client_v17__add_node!(); crate::impl_client_v17__clear_banned!(); crate::impl_client_v17__disconnect_node!(); crate::impl_client_v17__get_added_node_info!(); +crate::impl_client_v17__get_connection_count!(); crate::impl_client_v17__get_net_totals!(); crate::impl_client_v17__get_network_info!(); crate::impl_client_v18__get_node_addresses!(); diff --git a/client/src/client_sync/v24/mod.rs b/client/src/client_sync/v24/mod.rs index 89e291b7..61e6d656 100644 --- a/client/src/client_sync/v24/mod.rs +++ b/client/src/client_sync/v24/mod.rs @@ -75,6 +75,7 @@ crate::impl_client_v17__add_node!(); crate::impl_client_v17__clear_banned!(); crate::impl_client_v17__disconnect_node!(); crate::impl_client_v17__get_added_node_info!(); +crate::impl_client_v17__get_connection_count!(); crate::impl_client_v17__get_net_totals!(); crate::impl_client_v17__get_network_info!(); crate::impl_client_v18__get_node_addresses!(); diff --git a/client/src/client_sync/v25/mod.rs b/client/src/client_sync/v25/mod.rs index 688cd814..5de97f47 100644 --- a/client/src/client_sync/v25/mod.rs +++ b/client/src/client_sync/v25/mod.rs @@ -75,6 +75,7 @@ crate::impl_client_v17__add_node!(); crate::impl_client_v17__clear_banned!(); crate::impl_client_v17__disconnect_node!(); crate::impl_client_v17__get_added_node_info!(); +crate::impl_client_v17__get_connection_count!(); crate::impl_client_v17__get_net_totals!(); crate::impl_client_v17__get_network_info!(); crate::impl_client_v18__get_node_addresses!(); diff --git a/client/src/client_sync/v26/mod.rs b/client/src/client_sync/v26/mod.rs index 3fa1efec..d18712ba 100644 --- a/client/src/client_sync/v26/mod.rs +++ b/client/src/client_sync/v26/mod.rs @@ -80,6 +80,7 @@ crate::impl_client_v17__add_node!(); crate::impl_client_v17__clear_banned!(); crate::impl_client_v17__disconnect_node!(); crate::impl_client_v17__get_added_node_info!(); +crate::impl_client_v17__get_connection_count!(); crate::impl_client_v17__get_net_totals!(); crate::impl_client_v17__get_network_info!(); crate::impl_client_v18__get_node_addresses!(); diff --git a/client/src/client_sync/v27/mod.rs b/client/src/client_sync/v27/mod.rs index 6974d472..378c0259 100644 --- a/client/src/client_sync/v27/mod.rs +++ b/client/src/client_sync/v27/mod.rs @@ -76,6 +76,7 @@ crate::impl_client_v17__add_node!(); crate::impl_client_v17__clear_banned!(); crate::impl_client_v17__disconnect_node!(); crate::impl_client_v17__get_added_node_info!(); +crate::impl_client_v17__get_connection_count!(); crate::impl_client_v17__get_net_totals!(); crate::impl_client_v17__get_network_info!(); crate::impl_client_v18__get_node_addresses!(); diff --git a/client/src/client_sync/v28/mod.rs b/client/src/client_sync/v28/mod.rs index 722312fc..2f4c45bd 100644 --- a/client/src/client_sync/v28/mod.rs +++ b/client/src/client_sync/v28/mod.rs @@ -78,6 +78,7 @@ crate::impl_client_v17__add_node!(); crate::impl_client_v17__clear_banned!(); crate::impl_client_v17__disconnect_node!(); crate::impl_client_v17__get_added_node_info!(); +crate::impl_client_v17__get_connection_count!(); crate::impl_client_v17__get_net_totals!(); crate::impl_client_v17__get_network_info!(); crate::impl_client_v18__get_node_addresses!(); diff --git a/client/src/client_sync/v29/mod.rs b/client/src/client_sync/v29/mod.rs index 8a3650f1..f12f4b01 100644 --- a/client/src/client_sync/v29/mod.rs +++ b/client/src/client_sync/v29/mod.rs @@ -78,6 +78,7 @@ crate::impl_client_v17__add_node!(); crate::impl_client_v17__clear_banned!(); crate::impl_client_v17__disconnect_node!(); crate::impl_client_v17__get_added_node_info!(); +crate::impl_client_v17__get_connection_count!(); crate::impl_client_v17__get_net_totals!(); crate::impl_client_v17__get_network_info!(); crate::impl_client_v18__get_node_addresses!(); diff --git a/integration_test/tests/network.rs b/integration_test/tests/network.rs index 77e9cf24..531f109a 100644 --- a/integration_test/tests/network.rs +++ b/integration_test/tests/network.rs @@ -49,6 +49,12 @@ fn network__get_added_node_info() { let _: GetAddedNodeInfo = node.client.get_added_node_info().expect("getaddednodeinfo"); } +#[test] +fn network__get_connection_count() { + let node = Node::with_wallet(Wallet::None, &[]); + let _: GetConnectionCount = node.client.get_connection_count().expect("getconnectioncount"); +} + #[test] fn network__get_net_totals() { let node = Node::with_wallet(Wallet::None, &[]); diff --git a/types/src/v17/mod.rs b/types/src/v17/mod.rs index 93640593..7f58f7d9 100644 --- a/types/src/v17/mod.rs +++ b/types/src/v17/mod.rs @@ -253,9 +253,9 @@ pub use self::{ GetBlockTemplateError, GetMiningInfo, }, network::{ - AddedNode, AddedNodeAddress, Banned, GetAddedNodeInfo, GetNetTotals, GetNetworkInfo, - GetNetworkInfoAddress, GetNetworkInfoError, GetNetworkInfoNetwork, GetPeerInfo, ListBanned, - PeerInfo, UploadTarget, + AddedNode, AddedNodeAddress, Banned, GetAddedNodeInfo, GetConnectionCount, GetNetTotals, + GetNetworkInfo, GetNetworkInfoAddress, GetNetworkInfoError, GetNetworkInfoNetwork, + GetPeerInfo, ListBanned, PeerInfo, UploadTarget, }, raw_transactions::{ CombinePsbt, CombineRawTransaction, ConvertToPsbt, CreatePsbt, CreateRawTransaction, diff --git a/types/src/v17/network/mod.rs b/types/src/v17/network/mod.rs index 5f9b2947..a2eb71a4 100644 --- a/types/src/v17/network/mod.rs +++ b/types/src/v17/network/mod.rs @@ -47,6 +47,14 @@ pub struct AddedNodeAddress { pub connected: String, } +/// Result of JSON-RPC method `getconnectioncount`. +/// +/// > getconnectioncount +/// > +/// > Returns n (numeric) The connection count +#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)] +pub struct GetConnectionCount(pub u64); + /// Result of JSON-RPC method `getnettotals`. /// /// > getnettotals diff --git a/types/src/v18/mod.rs b/types/src/v18/mod.rs index 5c8515b1..831b7383 100644 --- a/types/src/v18/mod.rs +++ b/types/src/v18/mod.rs @@ -252,8 +252,8 @@ pub use crate::v17::{ GetBlockHeaderError, GetBlockHeaderVerbose, GetBlockHeaderVerboseError, GetBlockStats, GetBlockStatsError, GetBlockTemplate, GetBlockTemplateError, GetBlockVerboseOne, GetBlockVerboseOneError, GetBlockVerboseZero, GetBlockchainInfo, GetBlockchainInfoError, - GetChainTips, GetChainTxStats, GetChainTxStatsError, GetDifficulty, GetMemoryInfoStats, - GetMempoolAncestors, GetMempoolAncestorsVerbose, GetMempoolDescendants, + GetChainTips, GetChainTxStats, GetChainTxStatsError, GetConnectionCount, GetDifficulty, + GetMemoryInfoStats, GetMempoolAncestors, GetMempoolAncestorsVerbose, GetMempoolDescendants, GetMempoolDescendantsVerbose, GetMempoolEntry, GetMempoolInfo, GetMempoolInfoError, GetMiningInfo, GetNetTotals, GetNetworkInfo, GetNetworkInfoAddress, GetNetworkInfoError, GetNetworkInfoNetwork, GetNewAddress, GetPeerInfo, GetRawChangeAddress, GetRawMempool, diff --git a/types/src/v19/mod.rs b/types/src/v19/mod.rs index 11697a50..1582f877 100644 --- a/types/src/v19/mod.rs +++ b/types/src/v19/mod.rs @@ -252,25 +252,25 @@ pub use crate::v17::{ GetBlockCount, GetBlockHash, GetBlockHeader, GetBlockHeaderError, GetBlockHeaderVerbose, GetBlockHeaderVerboseError, GetBlockStats, GetBlockStatsError, GetBlockTemplate, GetBlockTemplateError, GetBlockVerboseOne, GetBlockVerboseOneError, GetBlockVerboseZero, - GetChainTips, GetChainTxStats, GetChainTxStatsError, GetDifficulty, GetMemoryInfoStats, - GetMempoolInfo, GetMempoolInfoError, GetMiningInfo, GetNetTotals, GetNetworkInfo, - GetNetworkInfoAddress, GetNetworkInfoError, GetNetworkInfoNetwork, GetNewAddress, GetPeerInfo, - GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, GetRawTransaction, - GetRawTransactionVerbose, GetRawTransactionVerboseError, GetReceivedByAddress, GetTransaction, - GetTransactionDetail, GetTransactionDetailError, GetTransactionError, GetTxOut, GetTxOutError, - GetTxOutSetInfo, GetTxOutSetInfoError, GetUnconfirmedBalance, GetWalletInfo, - GetWalletInfoError, GetZmqNotifications, ListAddressGroupings, ListAddressGroupingsError, - ListAddressGroupingsItem, ListBanned, ListLabels, ListLockUnspent, ListLockUnspentItem, - ListLockUnspentItemError, ListReceivedByAddress, ListReceivedByAddressError, - ListReceivedByAddressItem, ListSinceBlock, ListSinceBlockError, ListSinceBlockTransaction, - ListSinceBlockTransactionError, ListTransactions, ListTransactionsItem, - ListTransactionsItemError, ListUnspentItemError, ListWallets, LoadWallet, Locked, Logging, - PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput, RawTransactionOutput, - RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, SignMessage, - SignMessageWithPrivKey, SignRawTransaction, SignRawTransactionError, SoftforkReject, - TestMempoolAccept, TransactionCategory, UploadTarget, ValidateAddress, ValidateAddressError, - VerifyChain, VerifyMessage, VerifyTxOutProof, WalletCreateFundedPsbt, - WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo, + GetChainTips, GetChainTxStats, GetChainTxStatsError, GetConnectionCount, GetDifficulty, + GetMemoryInfoStats, GetMempoolInfo, GetMempoolInfoError, GetMiningInfo, GetNetTotals, + GetNetworkInfo, GetNetworkInfoAddress, GetNetworkInfoError, GetNetworkInfoNetwork, + GetNewAddress, GetPeerInfo, GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, + GetRawTransaction, GetRawTransactionVerbose, GetRawTransactionVerboseError, + GetReceivedByAddress, GetTransaction, GetTransactionDetail, GetTransactionDetailError, + GetTransactionError, GetTxOut, GetTxOutError, GetTxOutSetInfo, GetTxOutSetInfoError, + GetUnconfirmedBalance, GetWalletInfo, GetWalletInfoError, GetZmqNotifications, + ListAddressGroupings, ListAddressGroupingsError, ListAddressGroupingsItem, ListBanned, + ListLabels, ListLockUnspent, ListLockUnspentItem, ListLockUnspentItemError, + ListReceivedByAddress, ListReceivedByAddressError, ListReceivedByAddressItem, ListSinceBlock, + ListSinceBlockError, ListSinceBlockTransaction, ListSinceBlockTransactionError, + ListTransactions, ListTransactionsItem, ListTransactionsItemError, ListUnspentItemError, + ListWallets, LoadWallet, Locked, Logging, PeerInfo, PruneBlockchain, RawTransactionError, + RawTransactionInput, RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, + SendToAddress, SignMessage, SignMessageWithPrivKey, SignRawTransaction, + SignRawTransactionError, SoftforkReject, TestMempoolAccept, TransactionCategory, UploadTarget, + ValidateAddress, ValidateAddressError, VerifyChain, VerifyMessage, VerifyTxOutProof, + WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo, }; #[doc(inline)] pub use crate::v18::{ diff --git a/types/src/v20/mod.rs b/types/src/v20/mod.rs index 51303347..f43f851e 100644 --- a/types/src/v20/mod.rs +++ b/types/src/v20/mod.rs @@ -245,23 +245,24 @@ pub use crate::{ GetBlockHash, GetBlockHeader, GetBlockHeaderError, GetBlockHeaderVerbose, GetBlockHeaderVerboseError, GetBlockStats, GetBlockStatsError, GetBlockTemplate, GetBlockTemplateError, GetBlockVerboseOne, GetBlockVerboseOneError, GetBlockVerboseZero, - GetChainTips, GetChainTxStats, GetChainTxStatsError, GetDifficulty, GetMemoryInfoStats, - GetMempoolInfo, GetMempoolInfoError, GetMiningInfo, GetNetTotals, GetNetworkInfo, - GetNetworkInfoAddress, GetNetworkInfoError, GetNetworkInfoNetwork, GetNewAddress, - GetPeerInfo, GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, GetRawTransaction, - GetRawTransactionVerbose, GetRawTransactionVerboseError, GetReceivedByAddress, - GetTransaction, GetTransactionDetail, GetTransactionDetailError, GetTransactionError, - GetTxOut, GetTxOutError, GetTxOutSetInfo, GetTxOutSetInfoError, GetUnconfirmedBalance, - GetWalletInfo, GetWalletInfoError, GetZmqNotifications, ListAddressGroupings, - ListAddressGroupingsError, ListAddressGroupingsItem, ListBanned, ListLabels, - ListLockUnspent, ListLockUnspentItem, ListLockUnspentItemError, ListReceivedByAddress, - ListReceivedByAddressError, ListReceivedByAddressItem, ListSinceBlock, ListSinceBlockError, - ListSinceBlockTransaction, ListSinceBlockTransactionError, ListTransactions, - ListTransactionsItem, ListTransactionsItemError, ListUnspentItemError, ListWallets, - LoadWallet, Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput, - RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, - SignMessage, SignMessageWithPrivKey, SignRawTransaction, SignRawTransactionError, - SoftforkReject, TestMempoolAccept, TransactionCategory, UploadTarget, ValidateAddress, + GetChainTips, GetChainTxStats, GetChainTxStatsError, GetConnectionCount, GetDifficulty, + GetMemoryInfoStats, GetMempoolInfo, GetMempoolInfoError, GetMiningInfo, GetNetTotals, + GetNetworkInfo, GetNetworkInfoAddress, GetNetworkInfoError, GetNetworkInfoNetwork, + GetNewAddress, GetPeerInfo, GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, + GetRawTransaction, GetRawTransactionVerbose, GetRawTransactionVerboseError, + GetReceivedByAddress, GetTransaction, GetTransactionDetail, GetTransactionDetailError, + GetTransactionError, GetTxOut, GetTxOutError, GetTxOutSetInfo, GetTxOutSetInfoError, + GetUnconfirmedBalance, GetWalletInfo, GetWalletInfoError, GetZmqNotifications, + ListAddressGroupings, ListAddressGroupingsError, ListAddressGroupingsItem, ListBanned, + ListLabels, ListLockUnspent, ListLockUnspentItem, ListLockUnspentItemError, + ListReceivedByAddress, ListReceivedByAddressError, ListReceivedByAddressItem, + ListSinceBlock, ListSinceBlockError, ListSinceBlockTransaction, + ListSinceBlockTransactionError, ListTransactions, ListTransactionsItem, + ListTransactionsItemError, ListUnspentItemError, ListWallets, LoadWallet, Locked, PeerInfo, + PruneBlockchain, RawTransactionError, RawTransactionInput, RawTransactionOutput, + RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, SignMessage, + SignMessageWithPrivKey, SignRawTransaction, SignRawTransactionError, SoftforkReject, + TestMempoolAccept, TransactionCategory, UploadTarget, ValidateAddress, ValidateAddressError, VerifyChain, VerifyMessage, VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo, }, diff --git a/types/src/v21/mod.rs b/types/src/v21/mod.rs index 80d6b919..57f62368 100644 --- a/types/src/v21/mod.rs +++ b/types/src/v21/mod.rs @@ -251,23 +251,24 @@ pub use crate::{ GetBlockHash, GetBlockHeader, GetBlockHeaderError, GetBlockHeaderVerbose, GetBlockHeaderVerboseError, GetBlockStats, GetBlockStatsError, GetBlockTemplate, GetBlockTemplateError, GetBlockVerboseOne, GetBlockVerboseOneError, GetBlockVerboseZero, - GetChainTips, GetChainTxStats, GetChainTxStatsError, GetDifficulty, GetMemoryInfoStats, - GetMempoolInfo, GetMempoolInfoError, GetMiningInfo, GetNetTotals, GetNetworkInfo, - GetNetworkInfoAddress, GetNetworkInfoError, GetNetworkInfoNetwork, GetNewAddress, - GetPeerInfo, GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, GetRawTransaction, - GetRawTransactionVerbose, GetRawTransactionVerboseError, GetReceivedByAddress, - GetTransaction, GetTransactionDetail, GetTransactionDetailError, GetTransactionError, - GetTxOut, GetTxOutError, GetTxOutSetInfo, GetTxOutSetInfoError, GetUnconfirmedBalance, - GetWalletInfo, GetWalletInfoError, GetZmqNotifications, ListAddressGroupings, - ListAddressGroupingsError, ListAddressGroupingsItem, ListBanned, ListLabels, - ListLockUnspent, ListLockUnspentItem, ListLockUnspentItemError, ListReceivedByAddress, - ListReceivedByAddressError, ListReceivedByAddressItem, ListSinceBlock, ListSinceBlockError, - ListSinceBlockTransaction, ListSinceBlockTransactionError, ListTransactions, - ListTransactionsItem, ListTransactionsItemError, ListUnspentItemError, ListWallets, - LoadWallet, Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput, - RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, - SignMessage, SignMessageWithPrivKey, SignRawTransaction, SignRawTransactionError, - SoftforkReject, TestMempoolAccept, TransactionCategory, UploadTarget, ValidateAddress, + GetChainTips, GetChainTxStats, GetChainTxStatsError, GetConnectionCount, GetDifficulty, + GetMemoryInfoStats, GetMempoolInfo, GetMempoolInfoError, GetMiningInfo, GetNetTotals, + GetNetworkInfo, GetNetworkInfoAddress, GetNetworkInfoError, GetNetworkInfoNetwork, + GetNewAddress, GetPeerInfo, GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, + GetRawTransaction, GetRawTransactionVerbose, GetRawTransactionVerboseError, + GetReceivedByAddress, GetTransaction, GetTransactionDetail, GetTransactionDetailError, + GetTransactionError, GetTxOut, GetTxOutError, GetTxOutSetInfo, GetTxOutSetInfoError, + GetUnconfirmedBalance, GetWalletInfo, GetWalletInfoError, GetZmqNotifications, + ListAddressGroupings, ListAddressGroupingsError, ListAddressGroupingsItem, ListBanned, + ListLabels, ListLockUnspent, ListLockUnspentItem, ListLockUnspentItemError, + ListReceivedByAddress, ListReceivedByAddressError, ListReceivedByAddressItem, + ListSinceBlock, ListSinceBlockError, ListSinceBlockTransaction, + ListSinceBlockTransactionError, ListTransactions, ListTransactionsItem, + ListTransactionsItemError, ListUnspentItemError, ListWallets, LoadWallet, Locked, PeerInfo, + PruneBlockchain, RawTransactionError, RawTransactionInput, RawTransactionOutput, + RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, SignMessage, + SignMessageWithPrivKey, SignRawTransaction, SignRawTransactionError, SoftforkReject, + TestMempoolAccept, TransactionCategory, UploadTarget, ValidateAddress, ValidateAddressError, VerifyChain, VerifyMessage, VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo, }, diff --git a/types/src/v22/mod.rs b/types/src/v22/mod.rs index d5137d98..80541db0 100644 --- a/types/src/v22/mod.rs +++ b/types/src/v22/mod.rs @@ -262,23 +262,24 @@ pub use crate::{ GetBlockHash, GetBlockHeader, GetBlockHeaderError, GetBlockHeaderVerbose, GetBlockHeaderVerboseError, GetBlockStats, GetBlockStatsError, GetBlockTemplate, GetBlockTemplateError, GetBlockVerboseOne, GetBlockVerboseOneError, GetBlockVerboseZero, - GetChainTips, GetChainTxStats, GetChainTxStatsError, GetDifficulty, GetMemoryInfoStats, - GetMempoolInfo, GetMempoolInfoError, GetMiningInfo, GetNetTotals, GetNetworkInfo, - GetNetworkInfoAddress, GetNetworkInfoError, GetNetworkInfoNetwork, GetNewAddress, - GetPeerInfo, GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, GetRawTransaction, - GetRawTransactionVerbose, GetRawTransactionVerboseError, GetReceivedByAddress, - GetTransaction, GetTransactionDetail, GetTransactionDetailError, GetTransactionError, - GetTxOut, GetTxOutError, GetTxOutSetInfo, GetTxOutSetInfoError, GetUnconfirmedBalance, - GetWalletInfo, GetWalletInfoError, GetZmqNotifications, ListAddressGroupings, - ListAddressGroupingsError, ListAddressGroupingsItem, ListBanned, ListLabels, - ListLockUnspent, ListLockUnspentItem, ListLockUnspentItemError, ListReceivedByAddress, - ListReceivedByAddressError, ListReceivedByAddressItem, ListSinceBlock, ListSinceBlockError, - ListSinceBlockTransaction, ListSinceBlockTransactionError, ListTransactions, - ListTransactionsItem, ListTransactionsItemError, ListUnspentItemError, ListWallets, - LoadWallet, Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput, - RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, - SignMessage, SignMessageWithPrivKey, SignRawTransaction, SignRawTransactionError, - SoftforkReject, TestMempoolAccept, TransactionCategory, UploadTarget, ValidateAddress, + GetChainTips, GetChainTxStats, GetChainTxStatsError, GetConnectionCount, GetDifficulty, + GetMemoryInfoStats, GetMempoolInfo, GetMempoolInfoError, GetMiningInfo, GetNetTotals, + GetNetworkInfo, GetNetworkInfoAddress, GetNetworkInfoError, GetNetworkInfoNetwork, + GetNewAddress, GetPeerInfo, GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, + GetRawTransaction, GetRawTransactionVerbose, GetRawTransactionVerboseError, + GetReceivedByAddress, GetTransaction, GetTransactionDetail, GetTransactionDetailError, + GetTransactionError, GetTxOut, GetTxOutError, GetTxOutSetInfo, GetTxOutSetInfoError, + GetUnconfirmedBalance, GetWalletInfo, GetWalletInfoError, GetZmqNotifications, + ListAddressGroupings, ListAddressGroupingsError, ListAddressGroupingsItem, ListBanned, + ListLabels, ListLockUnspent, ListLockUnspentItem, ListLockUnspentItemError, + ListReceivedByAddress, ListReceivedByAddressError, ListReceivedByAddressItem, + ListSinceBlock, ListSinceBlockError, ListSinceBlockTransaction, + ListSinceBlockTransactionError, ListTransactions, ListTransactionsItem, + ListTransactionsItemError, ListUnspentItemError, ListWallets, LoadWallet, Locked, PeerInfo, + PruneBlockchain, RawTransactionError, RawTransactionInput, RawTransactionOutput, + RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, SignMessage, + SignMessageWithPrivKey, SignRawTransaction, SignRawTransactionError, SoftforkReject, + TestMempoolAccept, TransactionCategory, UploadTarget, ValidateAddress, ValidateAddressError, VerifyChain, VerifyMessage, VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo, }, diff --git a/types/src/v23/mod.rs b/types/src/v23/mod.rs index 8e0a431e..edb88920 100644 --- a/types/src/v23/mod.rs +++ b/types/src/v23/mod.rs @@ -261,10 +261,10 @@ pub use crate::{ GetBlockHeaderError, GetBlockHeaderVerbose, GetBlockHeaderVerboseError, GetBlockStats, GetBlockStatsError, GetBlockTemplate, GetBlockTemplateError, GetBlockVerboseOne, GetBlockVerboseOneError, GetBlockVerboseZero, GetChainTips, GetChainTxStats, - GetChainTxStatsError, GetDifficulty, GetMemoryInfoStats, GetMempoolInfo, - GetMempoolInfoError, GetMiningInfo, GetNetTotals, GetNetworkInfo, GetNetworkInfoAddress, - GetNetworkInfoError, GetNetworkInfoNetwork, GetNewAddress, GetPeerInfo, - GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, GetRawTransaction, + GetChainTxStatsError, GetConnectionCount, GetDifficulty, GetMemoryInfoStats, + GetMempoolInfo, GetMempoolInfoError, GetMiningInfo, GetNetTotals, GetNetworkInfo, + GetNetworkInfoAddress, GetNetworkInfoError, GetNetworkInfoNetwork, GetNewAddress, + GetPeerInfo, GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, GetRawTransaction, GetRawTransactionVerbose, GetRawTransactionVerboseError, GetReceivedByAddress, GetTransaction, GetTransactionDetail, GetTransactionDetailError, GetTransactionError, GetTxOut, GetTxOutError, GetTxOutSetInfo, GetTxOutSetInfoError, GetUnconfirmedBalance, diff --git a/types/src/v24/mod.rs b/types/src/v24/mod.rs index 1d58079e..e2c8d4d6 100644 --- a/types/src/v24/mod.rs +++ b/types/src/v24/mod.rs @@ -262,10 +262,10 @@ pub use crate::{ GetBlockHeaderError, GetBlockHeaderVerbose, GetBlockHeaderVerboseError, GetBlockStats, GetBlockStatsError, GetBlockTemplate, GetBlockTemplateError, GetBlockVerboseOne, GetBlockVerboseOneError, GetBlockVerboseZero, GetChainTips, GetChainTxStats, - GetChainTxStatsError, GetDifficulty, GetMemoryInfoStats, GetMempoolInfo, - GetMempoolInfoError, GetMiningInfo, GetNetTotals, GetNetworkInfo, GetNetworkInfoAddress, - GetNetworkInfoError, GetNetworkInfoNetwork, GetNewAddress, GetPeerInfo, - GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, GetRawTransaction, + GetChainTxStatsError, GetConnectionCount, GetDifficulty, GetMemoryInfoStats, + GetMempoolInfo, GetMempoolInfoError, GetMiningInfo, GetNetTotals, GetNetworkInfo, + GetNetworkInfoAddress, GetNetworkInfoError, GetNetworkInfoNetwork, GetNewAddress, + GetPeerInfo, GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, GetRawTransaction, GetRawTransactionVerbose, GetRawTransactionVerboseError, GetReceivedByAddress, GetTransaction, GetTransactionDetail, GetTransactionDetailError, GetTransactionError, GetTxOut, GetTxOutError, GetTxOutSetInfo, GetTxOutSetInfoError, GetUnconfirmedBalance, diff --git a/types/src/v25/mod.rs b/types/src/v25/mod.rs index a9174058..9428d680 100644 --- a/types/src/v25/mod.rs +++ b/types/src/v25/mod.rs @@ -259,10 +259,10 @@ pub use crate::{ GetBlockHeaderError, GetBlockHeaderVerbose, GetBlockHeaderVerboseError, GetBlockStats, GetBlockStatsError, GetBlockTemplate, GetBlockTemplateError, GetBlockVerboseOne, GetBlockVerboseOneError, GetBlockVerboseZero, GetChainTips, GetChainTxStats, - GetChainTxStatsError, GetDifficulty, GetMemoryInfoStats, GetMempoolInfo, - GetMempoolInfoError, GetMiningInfo, GetNetTotals, GetNetworkInfo, GetNetworkInfoAddress, - GetNetworkInfoError, GetNetworkInfoNetwork, GetNewAddress, GetPeerInfo, - GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, GetRawTransaction, + GetChainTxStatsError, GetConnectionCount, GetDifficulty, GetMemoryInfoStats, + GetMempoolInfo, GetMempoolInfoError, GetMiningInfo, GetNetTotals, GetNetworkInfo, + GetNetworkInfoAddress, GetNetworkInfoError, GetNetworkInfoNetwork, GetNewAddress, + GetPeerInfo, GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, GetRawTransaction, GetRawTransactionVerbose, GetRawTransactionVerboseError, GetReceivedByAddress, GetTransaction, GetTransactionDetail, GetTransactionDetailError, GetTransactionError, GetTxOut, GetTxOutError, GetTxOutSetInfo, GetTxOutSetInfoError, GetUnconfirmedBalance, diff --git a/types/src/v26/mod.rs b/types/src/v26/mod.rs index 3b555dec..f17ec043 100644 --- a/types/src/v26/mod.rs +++ b/types/src/v26/mod.rs @@ -279,10 +279,10 @@ pub use crate::{ GetBlockHeaderError, GetBlockHeaderVerbose, GetBlockHeaderVerboseError, GetBlockStats, GetBlockStatsError, GetBlockTemplate, GetBlockTemplateError, GetBlockVerboseOne, GetBlockVerboseOneError, GetBlockVerboseZero, GetChainTips, GetChainTxStats, - GetChainTxStatsError, GetDifficulty, GetMemoryInfoStats, GetMempoolInfo, - GetMempoolInfoError, GetMiningInfo, GetNetTotals, GetNetworkInfo, GetNetworkInfoAddress, - GetNetworkInfoError, GetNetworkInfoNetwork, GetNewAddress, GetPeerInfo, - GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, GetRawTransaction, + GetChainTxStatsError, GetConnectionCount, GetDifficulty, GetMemoryInfoStats, + GetMempoolInfo, GetMempoolInfoError, GetMiningInfo, GetNetTotals, GetNetworkInfo, + GetNetworkInfoAddress, GetNetworkInfoError, GetNetworkInfoNetwork, GetNewAddress, + GetPeerInfo, GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, GetRawTransaction, GetRawTransactionVerbose, GetRawTransactionVerboseError, GetReceivedByAddress, GetTransaction, GetTransactionDetail, GetTransactionDetailError, GetTransactionError, GetTxOut, GetTxOutError, GetUnconfirmedBalance, GetWalletInfo, GetWalletInfoError, diff --git a/types/src/v27/mod.rs b/types/src/v27/mod.rs index 9a358088..89328b0c 100644 --- a/types/src/v27/mod.rs +++ b/types/src/v27/mod.rs @@ -263,10 +263,10 @@ pub use crate::{ GetBlockHeaderError, GetBlockHeaderVerbose, GetBlockHeaderVerboseError, GetBlockStats, GetBlockStatsError, GetBlockTemplate, GetBlockTemplateError, GetBlockVerboseOne, GetBlockVerboseOneError, GetBlockVerboseZero, GetChainTips, GetChainTxStats, - GetChainTxStatsError, GetDifficulty, GetMemoryInfoStats, GetMempoolInfo, - GetMempoolInfoError, GetMiningInfo, GetNetTotals, GetNetworkInfo, GetNetworkInfoAddress, - GetNetworkInfoError, GetNetworkInfoNetwork, GetNewAddress, GetPeerInfo, - GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, GetRawTransaction, + GetChainTxStatsError, GetConnectionCount, GetDifficulty, GetMemoryInfoStats, + GetMempoolInfo, GetMempoolInfoError, GetMiningInfo, GetNetTotals, GetNetworkInfo, + GetNetworkInfoAddress, GetNetworkInfoError, GetNetworkInfoNetwork, GetNewAddress, + GetPeerInfo, GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, GetRawTransaction, GetRawTransactionVerbose, GetRawTransactionVerboseError, GetReceivedByAddress, GetTransaction, GetTransactionDetail, GetTransactionDetailError, GetTransactionError, GetTxOut, GetTxOutError, GetUnconfirmedBalance, GetWalletInfo, GetWalletInfoError, diff --git a/types/src/v28/mod.rs b/types/src/v28/mod.rs index e284b944..925685eb 100644 --- a/types/src/v28/mod.rs +++ b/types/src/v28/mod.rs @@ -271,17 +271,17 @@ pub use crate::{ GetBlockHeaderError, GetBlockHeaderVerbose, GetBlockHeaderVerboseError, GetBlockStats, GetBlockStatsError, GetBlockTemplate, GetBlockTemplateError, GetBlockVerboseOne, GetBlockVerboseOneError, GetBlockVerboseZero, GetChainTips, GetChainTxStats, - GetChainTxStatsError, GetDifficulty, GetMemoryInfoStats, GetMempoolInfo, - GetMempoolInfoError, GetNetTotals, GetNetworkInfoAddress, GetNetworkInfoError, - GetNetworkInfoNetwork, GetNewAddress, GetPeerInfo, GetRawChangeAddress, GetRawMempool, - GetRawMempoolVerbose, GetRawTransaction, GetRawTransactionVerbose, - GetRawTransactionVerboseError, GetReceivedByAddress, GetTransaction, GetTransactionDetail, - GetTransactionDetailError, GetTransactionError, GetTxOut, GetTxOutError, - GetUnconfirmedBalance, GetWalletInfo, GetWalletInfoError, GetZmqNotifications, - ListAddressGroupings, ListAddressGroupingsError, ListAddressGroupingsItem, ListBanned, - ListLabels, ListLockUnspent, ListLockUnspentItem, ListLockUnspentItemError, - ListReceivedByAddress, ListReceivedByAddressError, ListReceivedByAddressItem, - ListSinceBlock, ListSinceBlockError, ListSinceBlockTransaction, + GetChainTxStatsError, GetConnectionCount, GetDifficulty, GetMemoryInfoStats, + GetMempoolInfo, GetMempoolInfoError, GetNetTotals, GetNetworkInfoAddress, + GetNetworkInfoError, GetNetworkInfoNetwork, GetNewAddress, GetPeerInfo, + GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, GetRawTransaction, + GetRawTransactionVerbose, GetRawTransactionVerboseError, GetReceivedByAddress, + GetTransaction, GetTransactionDetail, GetTransactionDetailError, GetTransactionError, + GetTxOut, GetTxOutError, GetUnconfirmedBalance, GetWalletInfo, GetWalletInfoError, + GetZmqNotifications, ListAddressGroupings, ListAddressGroupingsError, + ListAddressGroupingsItem, ListBanned, ListLabels, ListLockUnspent, ListLockUnspentItem, + ListLockUnspentItemError, ListReceivedByAddress, ListReceivedByAddressError, + ListReceivedByAddressItem, ListSinceBlock, ListSinceBlockError, ListSinceBlockTransaction, ListSinceBlockTransactionError, ListTransactions, ListTransactionsItem, ListTransactionsItemError, ListUnspentItemError, ListWallets, Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput, RawTransactionOutput, diff --git a/types/src/v29/mod.rs b/types/src/v29/mod.rs index 884ca456..777a371d 100644 --- a/types/src/v29/mod.rs +++ b/types/src/v29/mod.rs @@ -282,17 +282,17 @@ pub use crate::{ GetAddressInfoEmbeddedError, GetAddressInfoError, GetAddressInfoLabel, GetAddressesByLabel, GetBalance, GetBestBlockHash, GetBlockCount, GetBlockHash, GetBlockStats, GetBlockStatsError, GetBlockVerboseZero, GetChainTips, GetChainTxStats, - GetChainTxStatsError, GetDifficulty, GetMemoryInfoStats, GetMempoolInfo, - GetMempoolInfoError, GetNetTotals, GetNetworkInfoAddress, GetNetworkInfoError, - GetNetworkInfoNetwork, GetNewAddress, GetPeerInfo, GetRawChangeAddress, GetRawMempool, - GetRawMempoolVerbose, GetRawTransaction, GetRawTransactionVerbose, - GetRawTransactionVerboseError, GetReceivedByAddress, GetTransaction, GetTransactionDetail, - GetTransactionDetailError, GetTransactionError, GetTxOut, GetTxOutError, - GetUnconfirmedBalance, GetWalletInfo, GetWalletInfoError, GetZmqNotifications, - ListAddressGroupings, ListAddressGroupingsError, ListAddressGroupingsItem, ListBanned, - ListLabels, ListLockUnspent, ListLockUnspentItem, ListLockUnspentItemError, - ListReceivedByAddress, ListReceivedByAddressError, ListReceivedByAddressItem, - ListSinceBlock, ListSinceBlockError, ListSinceBlockTransaction, + GetChainTxStatsError, GetConnectionCount, GetDifficulty, GetMemoryInfoStats, + GetMempoolInfo, GetMempoolInfoError, GetNetTotals, GetNetworkInfoAddress, + GetNetworkInfoError, GetNetworkInfoNetwork, GetNewAddress, GetPeerInfo, + GetRawChangeAddress, GetRawMempool, GetRawMempoolVerbose, GetRawTransaction, + GetRawTransactionVerbose, GetRawTransactionVerboseError, GetReceivedByAddress, + GetTransaction, GetTransactionDetail, GetTransactionDetailError, GetTransactionError, + GetTxOut, GetTxOutError, GetUnconfirmedBalance, GetWalletInfo, GetWalletInfoError, + GetZmqNotifications, ListAddressGroupings, ListAddressGroupingsError, + ListAddressGroupingsItem, ListBanned, ListLabels, ListLockUnspent, ListLockUnspentItem, + ListLockUnspentItemError, ListReceivedByAddress, ListReceivedByAddressError, + ListReceivedByAddressItem, ListSinceBlock, ListSinceBlockError, ListSinceBlockTransaction, ListSinceBlockTransactionError, ListTransactions, ListTransactionsItem, ListTransactionsItemError, ListUnspentItemError, ListWallets, Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput, RawTransactionOutput, diff --git a/verify/src/method/v17.rs b/verify/src/method/v17.rs index 4eb3b0bb..daaf0aad 100644 --- a/verify/src/method/v17.rs +++ b/verify/src/method/v17.rs @@ -55,7 +55,7 @@ pub const METHODS: &[Method] = &[ Method::new_nothing("clearbanned", "clear_banned"), Method::new_nothing("disconnectnode", "disconnect_node"), Method::new_no_model("getaddednodeinfo", "GetAddedNodeInfo", "get_added_node_info"), - Method::new_numeric("getconnectioncount", "get_connection_count"), + Method::new_no_model("getconnectioncount", "GetConnectionCount", "get_connection_count"), Method::new_no_model("getnettotals", "GetNetTotals", "get_net_totals"), Method::new_modelled("getnetworkinfo", "GetNetworkInfo", "get_network_info"), Method::new_no_model("getpeerinfo", "GetPeerInfo", "get_peer_info"), diff --git a/verify/src/method/v18.rs b/verify/src/method/v18.rs index ae5d7d9c..a7553c17 100644 --- a/verify/src/method/v18.rs +++ b/verify/src/method/v18.rs @@ -57,7 +57,7 @@ pub const METHODS: &[Method] = &[ Method::new_nothing("clearbanned", "clear_banned"), Method::new_nothing("disconnectnode", "disconnect_node"), Method::new_no_model("getaddednodeinfo", "GetAddedNodeInfo", "get_added_node_info"), - Method::new_numeric("getconnectioncount", "get_connection_count"), + Method::new_no_model("getconnectioncount", "GetConnectionCount", "get_connection_count"), Method::new_no_model("getnettotals", "GetNetTotals", "get_net_totals"), Method::new_modelled("getnetworkinfo", "GetNetworkInfo", "get_network_info"), Method::new_modelled("getnodeaddresses", "GetNodeAddresses", "get_node_addresses"), diff --git a/verify/src/method/v19.rs b/verify/src/method/v19.rs index 305535d8..c8e7ac4e 100644 --- a/verify/src/method/v19.rs +++ b/verify/src/method/v19.rs @@ -57,7 +57,7 @@ pub const METHODS: &[Method] = &[ Method::new_nothing("clearbanned", "clear_banned"), Method::new_nothing("disconnectnode", "disconnect_node"), Method::new_no_model("getaddednodeinfo", "GetAddedNodeInfo", "get_added_node_info"), - Method::new_numeric("getconnectioncount", "get_connection_count"), + Method::new_no_model("getconnectioncount", "GetConnectionCount", "get_connection_count"), Method::new_no_model("getnettotals", "GetNetTotals", "get_net_totals"), Method::new_modelled("getnetworkinfo", "GetNetworkInfo", "get_network_info"), Method::new_modelled("getnodeaddresses", "GetNodeAddresses", "get_node_addresses"), diff --git a/verify/src/method/v20.rs b/verify/src/method/v20.rs index 39a9a848..93208bb4 100644 --- a/verify/src/method/v20.rs +++ b/verify/src/method/v20.rs @@ -58,7 +58,7 @@ pub const METHODS: &[Method] = &[ Method::new_nothing("clearbanned", "clear_banned"), Method::new_nothing("disconnectnode", "disconnect_node"), Method::new_no_model("getaddednodeinfo", "GetAddedNodeInfo", "get_added_node_info"), - Method::new_numeric("getconnectioncount", "get_connection_count"), + Method::new_no_model("getconnectioncount", "GetConnectionCount", "get_connection_count"), Method::new_no_model("getnettotals", "GetNetTotals", "get_net_totals"), Method::new_modelled("getnetworkinfo", "GetNetworkInfo", "get_network_info"), Method::new_modelled("getnodeaddresses", "GetNodeAddresses", "get_node_addresses"), diff --git a/verify/src/method/v21.rs b/verify/src/method/v21.rs index bec14a85..a98cbaa1 100644 --- a/verify/src/method/v21.rs +++ b/verify/src/method/v21.rs @@ -59,7 +59,7 @@ pub const METHODS: &[Method] = &[ Method::new_nothing("clearbanned", "clear_banned"), Method::new_nothing("disconnectnode", "disconnect_node"), Method::new_no_model("getaddednodeinfo", "GetAddedNodeInfo", "get_added_node_info"), - Method::new_numeric("getconnectioncount", "get_connection_count"), + Method::new_no_model("getconnectioncount", "GetConnectionCount", "get_connection_count"), Method::new_no_model("getnettotals", "GetNetTotals", "get_net_totals"), Method::new_modelled("getnetworkinfo", "GetNetworkInfo", "get_network_info"), Method::new_modelled("getnodeaddresses", "GetNodeAddresses", "get_node_addresses"), diff --git a/verify/src/method/v22.rs b/verify/src/method/v22.rs index e3a6ef2c..34c2f675 100644 --- a/verify/src/method/v22.rs +++ b/verify/src/method/v22.rs @@ -59,7 +59,7 @@ pub const METHODS: &[Method] = &[ Method::new_nothing("clearbanned", "clear_banned"), Method::new_nothing("disconnectnode", "disconnect_node"), Method::new_no_model("getaddednodeinfo", "GetAddedNodeInfo", "get_added_node_info"), - Method::new_numeric("getconnectioncount", "get_connection_count"), + Method::new_no_model("getconnectioncount", "GetConnectionCount", "get_connection_count"), Method::new_no_model("getnettotals", "GetNetTotals", "get_net_totals"), Method::new_modelled("getnetworkinfo", "GetNetworkInfo", "get_network_info"), Method::new_modelled("getnodeaddresses", "GetNodeAddresses", "get_node_addresses"), diff --git a/verify/src/method/v23.rs b/verify/src/method/v23.rs index 82721016..bce0ca51 100644 --- a/verify/src/method/v23.rs +++ b/verify/src/method/v23.rs @@ -57,7 +57,7 @@ pub const METHODS: &[Method] = &[ Method::new_nothing("clearbanned", "clear_banned"), Method::new_nothing("disconnectnode", "disconnect_node"), Method::new_no_model("getaddednodeinfo", "GetAddedNodeInfo", "get_added_node_info"), - Method::new_numeric("getconnectioncount", "get_connection_count"), + Method::new_no_model("getconnectioncount", "GetConnectionCount", "get_connection_count"), Method::new_no_model("getnettotals", "GetNetTotals", "get_net_totals"), Method::new_modelled("getnetworkinfo", "GetNetworkInfo", "get_network_info"), Method::new_modelled("getnodeaddresses", "GetNodeAddresses", "get_node_addresses"), diff --git a/verify/src/method/v24.rs b/verify/src/method/v24.rs index e9cb14c7..463e5182 100644 --- a/verify/src/method/v24.rs +++ b/verify/src/method/v24.rs @@ -58,7 +58,7 @@ pub const METHODS: &[Method] = &[ Method::new_nothing("clearbanned", "clear_banned"), Method::new_nothing("disconnectnode", "disconnect_node"), Method::new_no_model("getaddednodeinfo", "GetAddedNodeInfo", "get_added_node_info"), - Method::new_numeric("getconnectioncount", "get_connection_count"), + Method::new_no_model("getconnectioncount", "GetConnectionCount", "get_connection_count"), Method::new_no_model("getnettotals", "GetNetTotals", "get_net_totals"), Method::new_modelled("getnetworkinfo", "GetNetworkInfo", "get_network_info"), Method::new_modelled("getnodeaddresses", "GetNodeAddresses", "get_node_addresses"), diff --git a/verify/src/method/v25.rs b/verify/src/method/v25.rs index e320a1ef..dbcd0f96 100644 --- a/verify/src/method/v25.rs +++ b/verify/src/method/v25.rs @@ -59,7 +59,7 @@ pub const METHODS: &[Method] = &[ Method::new_nothing("clearbanned", "clear_banned"), Method::new_nothing("disconnectnode", "disconnect_node"), Method::new_no_model("getaddednodeinfo", "GetAddedNodeInfo", "get_added_node_info"), - Method::new_numeric("getconnectioncount", "get_connection_count"), + Method::new_no_model("getconnectioncount", "GetConnectionCount", "get_connection_count"), Method::new_no_model("getnettotals", "GetNetTotals", "get_net_totals"), Method::new_modelled("getnetworkinfo", "GetNetworkInfo", "get_network_info"), Method::new_modelled("getnodeaddresses", "GetNodeAddresses", "get_node_addresses"), diff --git a/verify/src/method/v26.rs b/verify/src/method/v26.rs index a89d0b1b..a7869d85 100644 --- a/verify/src/method/v26.rs +++ b/verify/src/method/v26.rs @@ -65,7 +65,7 @@ pub const METHODS: &[Method] = &[ Method::new_nothing("disconnectnode", "disconnect_node"), Method::new_no_model("getaddednodeinfo", "GetAddedNodeInfo", "get_added_node_info"), Method::new_no_model("getaddrmaninfo", "GetAddrManInfo", "get_addr_man_info"), - Method::new_numeric("getconnectioncount", "get_connection_count"), + Method::new_no_model("getconnectioncount", "GetConnectionCount", "get_connection_count"), Method::new_no_model("getnettotals", "GetNetTotals", "get_net_totals"), Method::new_modelled("getnetworkinfo", "GetNetworkInfo", "get_network_info"), Method::new_modelled("getnodeaddresses", "GetNodeAddresses", "get_node_addresses"), diff --git a/verify/src/method/v27.rs b/verify/src/method/v27.rs index dd1eb700..cfa89aac 100644 --- a/verify/src/method/v27.rs +++ b/verify/src/method/v27.rs @@ -67,7 +67,7 @@ pub const METHODS: &[Method] = &[ Method::new_nothing("disconnectnode", "disconnect_node"), Method::new_no_model("getaddednodeinfo", "GetAddedNodeInfo", "get_added_node_info"), Method::new_no_model("getaddrmaninfo", "GetAddrManInfo", "get_addr_man_info"), - Method::new_numeric("getconnectioncount", "get_connection_count"), + Method::new_no_model("getconnectioncount", "GetConnectionCount", "get_connection_count"), Method::new_no_model("getnettotals", "GetNetTotals", "get_net_totals"), Method::new_modelled("getnetworkinfo", "GetNetworkInfo", "get_network_info"), Method::new_modelled("getnodeaddresses", "GetNodeAddresses", "get_node_addresses"), diff --git a/verify/src/method/v28.rs b/verify/src/method/v28.rs index 184191dc..f1c26a06 100644 --- a/verify/src/method/v28.rs +++ b/verify/src/method/v28.rs @@ -67,7 +67,7 @@ pub const METHODS: &[Method] = &[ Method::new_nothing("disconnectnode", "disconnect_node"), Method::new_no_model("getaddednodeinfo", "GetAddedNodeInfo", "get_added_node_info"), Method::new_no_model("getaddrmaninfo", "GetAddrManInfo", "get_addr_man_info"), - Method::new_numeric("getconnectioncount", "get_connection_count"), + Method::new_no_model("getconnectioncount", "GetConnectionCount", "get_connection_count"), Method::new_no_model("getnettotals", "GetNetTotals", "get_net_totals"), Method::new_modelled("getnetworkinfo", "GetNetworkInfo", "get_network_info"), Method::new_modelled("getnodeaddresses", "GetNodeAddresses", "get_node_addresses"), diff --git a/verify/src/method/v29.rs b/verify/src/method/v29.rs index 11aee4af..1f6b6895 100644 --- a/verify/src/method/v29.rs +++ b/verify/src/method/v29.rs @@ -68,7 +68,7 @@ pub const METHODS: &[Method] = &[ Method::new_nothing("disconnectnode", "disconnect_node"), Method::new_no_model("getaddednodeinfo", "GetAddedNodeInfo", "get_added_node_info"), Method::new_no_model("getaddrmaninfo", "GetAddrManInfo", "get_addr_man_info"), - Method::new_numeric("getconnectioncount", "get_connection_count"), + Method::new_no_model("getconnectioncount", "GetConnectionCount", "get_connection_count"), Method::new_no_model("getnettotals", "GetNetTotals", "get_net_totals"), Method::new_modelled("getnetworkinfo", "GetNetworkInfo", "get_network_info"), Method::new_modelled("getnodeaddresses", "GetNodeAddresses", "get_node_addresses"),