convenience methods for node

This commit is contained in:
pippellia-btc
2025-05-30 15:36:38 +02:00
parent aeec9662c8
commit c4d54651f1
2 changed files with 14 additions and 11 deletions

View File

@@ -135,7 +135,7 @@ func arbiterScan(ctx context.Context, config ArbiterConfig, db redb.RedisDB, sen
case graph.StatusInactive:
// inactive --> active
added, found := node.Added()
added, found := node.Addition()
if !found {
return promoted, demoted, fmt.Errorf("node %s doesn't have an addition record", node.ID)
}