Skip to content

Commit e230c70

Browse files
authored
Merge pull request #6
* breaking change: filters are now based on x-only pubKeys and not scriptPubKeys * Merge branch 'refs/heads/main' into dev * reduced log bloat * removed old todo
1 parent 8cde350 commit e230c70

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/core/cfilter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
)
1111

1212
// BuildTaprootOnlyFilter creates the taproot only filter
13-
// todo change to only use x-only pubKeys instead of 5120...
1413
func BuildTaprootOnlyFilter(block *types.Block) (types.Filter, error) {
1514
var taprootOutput [][]byte
1615

@@ -23,7 +22,8 @@ func BuildTaprootOnlyFilter(block *types.Block) (types.Filter, error) {
2322
common.ErrorLogger.Fatalln(err)
2423
return types.Filter{}, err
2524
}
26-
taprootOutput = append(taprootOutput, scriptAsBytes)
25+
// only append the x-only pubKey. reduces complexity
26+
taprootOutput = append(taprootOutput, scriptAsBytes[2:])
2727
}
2828
}
2929
}

src/core/routine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func CheckBlock(block *types.Block) {
8989
// todo this should fail at the highest instance were its wrapped in,
9090
// fatal made sense here while it only had one use,
9191
// but might not want to exit the program if used in other locations
92-
common.InfoLogger.Println("Processing block:", block.Height)
92+
//common.InfoLogger.Println("Processing block:", block.Height)
9393

9494
err := HandleBlock(block)
9595
if err != nil {

0 commit comments

Comments
 (0)