graph/db: remove unused sig field from ChannelEdgePolicy

Remove the cached parsed signature field and its lazy getter method
from ChannelEdgePolicy. This field was unused throughout the codebase
and the signature is already stored as raw bytes in SigBytes.

The SetSigBytes method is updated to remove the cache invalidation
logic.
This commit is contained in:
Elle Mouton committed 2026-02-13 07:21:21 +02:00
1 parent fcbfeb33e0
commit 6fda2e8da9
2 files changed
+2 -34

No files matched your search

+1 -1
View File
@@ -449,7 +449,7 @@ func (r *Manager) updateEdge(chanPoint wire.OutPoint,
}
// Clear signature to help prevent usage of the previous signature.
edge.SetSigBytes(nil)
edge.SigBytes = nil
return nil
}