script, doc: spelling update

This commit is contained in:
Jon Atack
2021-06-23 13:33:18 +02:00
parent 567670bec5
commit 184d4534f6
4 changed files with 6 additions and 5 deletions

View File

@@ -530,9 +530,9 @@ std::optional<std::vector<std::tuple<int, CScript, int>>> InferTaprootTree(const
std::vector<std::tuple<int, CScript, int>> ret;
if (spenddata.merkle_root.IsNull()) return ret;
/** Data structure to represent the nodes of the tree we're going to be build. */
/** Data structure to represent the nodes of the tree we're going to build. */
struct TreeNode {
/** Hash of this none, if known; 0 otherwise. */
/** Hash of this node, if known; 0 otherwise. */
uint256 hash;
/** The left and right subtrees (note that their order is irrelevant). */
std::unique_ptr<TreeNode> sub[2];
@@ -547,7 +547,7 @@ std::optional<std::vector<std::tuple<int, CScript, int>>> InferTaprootTree(const
bool done = false;
};
// Build tree from the provides branches.
// Build tree from the provided branches.
TreeNode root;
root.hash = spenddata.merkle_root;
for (const auto& [key, control_blocks] : spenddata.scripts) {