Skip to content

Commit 3fc512d

Browse files
committed
Fix RPC names in rustdocs
Two structs had incorrect RPC names in their rustdocs. Correct them.
1 parent 1ef138f commit 3fc512d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

types/src/model/blockchain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ pub struct GetMempoolAncestors(pub Vec<Txid>);
520520
#[serde(deny_unknown_fields)]
521521
pub struct GetMempoolAncestorsVerbose(pub BTreeMap<Txid, MempoolEntry>);
522522

523-
/// Models the result of JSON-RPC method `getmempoolancestors` with verbose set to false.
523+
/// Models the result of JSON-RPC method `getmempooldescendants` with verbose set to false.
524524
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
525525
#[serde(deny_unknown_fields)]
526526
pub struct GetMempoolDescendants(pub Vec<Txid>);

types/src/v17/blockchain/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ pub struct GetMempoolInfo {
602602
#[serde(deny_unknown_fields)]
603603
pub struct GetRawMempool(pub Vec<String>);
604604

605-
/// Result of JSON-RPC method `getmempooldescendants` with verbose set to `true`.
605+
/// Result of JSON-RPC method `getrawmempool` with verbose set to `true`.
606606
///
607607
/// Map of txid to [`MempoolEntry`].
608608
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]

0 commit comments

Comments
 (0)