mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
script, doc: spelling update
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user