utreexo / utreexod

A fully validating Bitcoin node with Utreexo support
ISC License
86 stars 19 forks source link

feat: add new getcfilters message draft #191

Closed alainjr10 closed 1 week ago

alainjr10 commented 1 week ago

This is meant to be just a draft PR

Add support for new getcfilters message called UtreexoCFilter When a new block is added, a new UtreexoCFilter filter is created and persisted on the node. This filter is created by serializing the contents of the roots at that height. When a node receives a getcfilters message, the logic doesn't change much, it handles it almost identical to how it deals with basic filters.

There's a problem however in this Draft PR. on utreexoproofindex.go file, on like 358, we check is the root is a CSN by just assigning it a variable, however, we want to actually make this check properly, I need a bit of help there.