From e69701e0899633570e474e52a3eda8dda515c166 Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Tue, 5 Apr 2022 22:16:59 +0200 Subject: [PATCH] Rename taproot `*_hidden` API into `*_hidden_nodes` --- src/util/taproot.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/taproot.rs b/src/util/taproot.rs index 729f6efb..440792ab 100644 --- a/src/util/taproot.rs +++ b/src/util/taproot.rs @@ -456,8 +456,8 @@ impl TaprootBuilder { /// Adds a hidden/omitted node at `depth` to the builder. Errors if the leaves are not provided /// in DFS walk order. The depth of the root node is 0. - pub fn add_hidden(self, depth: u8, hash: sha256::Hash) -> Result { - let node = NodeInfo::new_hidden(hash); + pub fn add_hidden_node(self, depth: u8, hash: sha256::Hash) -> Result { + let node = NodeInfo::new_hidden_node(hash); self.insert(node, depth) } @@ -555,7 +555,7 @@ pub struct NodeInfo { impl NodeInfo { /// Creates a new [`NodeInfo`] with omitted/hidden info. - pub fn new_hidden(hash: sha256::Hash) -> Self { + pub fn new_hidden_node(hash: sha256::Hash) -> Self { Self { hash: hash, leaves: vec![],