Skip to content

feat(libp2p): add raw peer_id columns to all libp2p tables#708

Open
samcm wants to merge 1 commit intomasterfrom
feat/add-peer-id
Open

feat(libp2p): add raw peer_id columns to all libp2p tables#708
samcm wants to merge 1 commit intomasterfrom
feat/add-peer-id

Conversation

@samcm
Copy link
Member

@samcm samcm commented Dec 11, 2025

Summary

  • Add peer_id string columns alongside existing peer_id_unique_key (seahash) columns to all libp2p tables
  • Enables direct peer identification for debugging and analysis without hash lookups
  • Add peer_id to 27 tables, remote_peer_id to 3 tables, graft_peer_id to 1 table
  • Update 30 Vector transforms to populate the new columns
  • Historical rows remain NULL; only new data will be populated

Changes

  • ClickHouse migration 087: Adds columns using ALTER TABLE ADD COLUMN on both local and distributed tables (zero downtime)
  • Vector transforms: Updated all 30 libp2p transforms to pass through raw peer_id before deleting source data

Add peer_id string columns alongside existing peer_id_unique_key (seahash)
columns to enable direct peer identification for debugging and analysis.

- Add peer_id to 27 tables with peer_id_unique_key
- Add remote_peer_id to 3 tables (connected, disconnected, synthetic_heartbeat)
- Add graft_peer_id to libp2p_rpc_meta_control_prune
- Update 30 Vector transforms to populate the new columns
- Historical rows remain NULL; only new data will be populated
@samcm samcm requested a review from Savid as a code owner December 11, 2025 12:46
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.

1 participant

Comments