We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed3fb45 commit 5813ec7Copy full SHA for 5813ec7
src/util/taproot.rs
@@ -392,7 +392,7 @@ impl TaprootBuilder {
392
node_weights.push((Reverse(p), NodeInfo::new_leaf_with_ver(leaf, LeafVersion::TapScript)));
393
}
394
if node_weights.is_empty() {
395
- return Err(TaprootBuilderError::IncompleteTree);
+ return Err(TaprootBuilderError::EmptyTree);
396
397
while node_weights.len() > 1 {
398
// Combine the last two elements and insert a new node
0 commit comments