We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2d46c02 + 3816328 commit f515d26Copy full SHA for f515d26
types/src/model/mod.rs
@@ -51,8 +51,9 @@ pub use self::{
51
GetTransactionDetail, GetUnconfirmedBalance, GetWalletInfo, ListAddressGroupings,
52
ListAddressGroupingsItem, ListLabels, ListLockUnspent, ListLockUnspentItem,
53
ListReceivedByAddress, ListReceivedByAddressItem, ListSinceBlock,
54
- ListSinceBlockTransaction, ListTransactions, ListTransactionsItem, ListUnspentItem,
55
- ListWallets, LoadWallet, RescanBlockchain, ScriptType, SendMany, SendToAddress,
56
- SignMessage, TransactionCategory, UnloadWallet, WalletCreateFundedPsbt, WalletProcessPsbt,
+ ListSinceBlockTransaction, ListTransactions, ListTransactionsItem, ListUnspent,
+ ListUnspentItem, ListWallets, LoadWallet, RescanBlockchain, ScriptType, SendMany,
+ SendToAddress, SignMessage, TransactionCategory, UnloadWallet, WalletCreateFundedPsbt,
57
+ WalletProcessPsbt,
58
},
59
};
verify/src/main.rs
@@ -164,6 +164,10 @@ fn check_types_exist_if_required(version: Version, method_name: &str) -> Result<
164
if !model::type_exists(version, method_name)? {
165
eprintln!("missing model type: {}", output_method(out));
166
}
167
+ } else {
168
+ if model::type_exists(version, method_name)? {
169
+ eprintln!("found model type when none expected: {}", output_method(out));
170
+ }
171
172
Ok(())
173
verify/src/method/v19.rs
@@ -10,7 +10,7 @@ pub const METHODS: &[Method] = &[
10
Method::new_modelled("getblock", "GetBlockVerboseZero", "get_block"), // We only check one of the types.
11
Method::new_modelled("getblockchaininfo", "GetBlockchainInfo", "get_blockchain_info"),
12
Method::new_modelled("getblockcount", "GetBlockCount", "get_block_count"),
13
- Method::new_no_model("getblockfilter", "GetBlockFilter", "get_block_filter"), // TODO: Use modelled.
+ Method::new_modelled("getblockfilter", "GetBlockFilter", "get_block_filter"),
14
Method::new_modelled("getblockhash", "GetBlockHash", "get_block_hash"),
15
Method::new_modelled("getblockheader", "GetBlockHeader", "get_block_header"),
16
Method::new_modelled("getblockstats", "GetBlockStats", "get_block_stats"),
verify/src/model.rs
@@ -40,9 +40,7 @@ pub fn type_exists(version: Version, method_name: &str) -> Result<bool> {
40
41
42
if let Some(Return::Type(s)) = method.ret {
43
- if method.requires_model {
44
- return crate::grep_for_string(&path(), s);
45
- }
+ return crate::grep_for_re_export(&path(), s);
46
47
Ok(false)
48
0 commit comments