Skip to content

Commit 92f51a2

Browse files
committed
breaking change: filters are now based on x-only pubKeys and not scriptPubKeys
1 parent 0d84a7a commit 92f51a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/cfilter.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ func BuildTaprootOnlyFilter(block *types.Block) (types.Filter, error) {
2323
common.ErrorLogger.Fatalln(err)
2424
return types.Filter{}, err
2525
}
26-
taprootOutput = append(taprootOutput, scriptAsBytes)
26+
// only append the x-only pubKey. reduces bandwidth
27+
taprootOutput = append(taprootOutput, scriptAsBytes[2:])
2728
}
2829
}
2930
}

0 commit comments

Comments
 (0)