Skip to content

Comments

fix: resolve stale member stats and null addresses (#59, #60)#5

Open
hexdaemon wants to merge 8 commits intohexdaemon:mainfrom
lightning-goats:fix/issue-59-60-member-stats-addresses
Open

fix: resolve stale member stats and null addresses (#59, #60)#5
hexdaemon wants to merge 8 commits intohexdaemon:mainfrom
lightning-goats:fix/issue-59-60-member-stats-addresses

Conversation

@hexdaemon
Copy link
Owner

Summary

Changes

  • modules/rpc_commands.py: Enrich members() RPC with live contribution_ratio and formatted uptime_pct
  • cl-hive.py: Sync contribution_ratio in maintenance loop, update last_seen on all Hive messages, capture addresses at join and on connect, initialize presence at join
  • tests/test_issue_59_60.py: 11 new tests covering all fixes

Test plan

  • python3 -m pytest tests/test_issue_59_60.py -v — 11/11 pass
  • python3 -m pytest tests/ -v — 1137/1137 pass (3 pre-existing asyncio failures unrelated)

Closes lightning-goats#59
Closes lightning-goats#60

🤖 Generated with Claude Code

santyr and others added 8 commits February 6, 2026 08:57
…mpotency

Protocol hardening: version tolerance + deterministic idempotency
…mpotency

Protocol hardening: Phases B+C+D (version tolerance, idempotency, reliable delivery)
…on-idempotency

Hardening: Phase B/C protocol versioning, idempotency & bug fixes
Added an image to enhance the article's visual appeal.
…on-idempotency

Comprehensive hardening: P0/P1 bug fixes, thread safety, security
…on-idempotency

fix: P2/P3 hardening across 13 modules
contribution_ratio was never synced from the ledger to hive_members,
last_seen only updated on connect/disconnect events, and addresses
were never captured at join time. This fixes all three root causes
plus initializes presence tracking at join so uptime_pct accumulates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The hive-status RPC only returned tier/joined_at/pubkey for our membership,
so cl-revenue-ops revenue-hive-status showed null for these fields (Issue #36).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hive-members: Member #3 has null addresses despite being promoted member hive-members shows 0% contribution_ratio and uptime_pct for all members

2 participants