wtdb: add TowerStatus to Tower

This is added as a TLV record meaning that all the towers currently on
disk that don't have this new field will be seen as Active.
This commit is contained in:
Elle Mouton committed 2024-02-20 08:58:46 +02:00
1 parent 1ae802812c
commit ffd355c6c4
2 files changed
+65 -2

No files matched your search

+1
View File
@@ -179,6 +179,7 @@ func TestCodec(tt *testing.T) {
obj := wtdb.Tower{
IdentityKey: pk,
Addresses: addrs,
Status: wtdb.TowerStatus(r.Uint32()),
}
v[0] = reflect.ValueOf(obj)