Skip to content

Commit

Permalink
verification: mute taproot related err to dbg
Browse files Browse the repository at this point in the history
We can't re-create the pkScript from a keyspend p2tr witness, as we're
missing the public key. So this warning will trigger for each block that
contains a p2tr key spend, which isn't really useful and confuses users.
So we're downgrading the error to a debug message.
  • Loading branch information
guggero committed May 15, 2023
1 parent 9badd7f commit 44a9702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verification.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func VerifyBasicBlockFilter(filter *gcs.Filter, block *btcutil.Block) (int,
}

if !match {
log.Errorf("filter for block %v might be "+
log.Debugf("filter for block %v might be "+
"invalid, input %d of tx %v spends "+
"pk script %x which wasn't matched by "+
"filter. The input likely spends a "+
Expand Down

0 comments on commit 44a9702

Please sign in to comment.