utreexo / utreexod

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

blockchain, utreexobackends: move nodesmapslice and cachedleavesmapslice to utreexobackends #168

Closed kcalvinalvin closed 2 months ago

kcalvinalvin commented 2 months ago

Moving these two to a separate package allows us to better control access to private fields. There was a runtime panic due to an unexported field being accessed, leading to a concurrent map read and write. Moving it into a separate package avoids this issue completely.