avalanchego icon indicating copy to clipboard operation
avalanchego copied to clipboard

Introducing GenericNodeID

Open abi87 opened this issue 1 year ago • 3 comments

Why this should be merged

We relax the lenght requirement of NodeID type and allow avalanche go to smoothly handle NodeID of potentially different sizes and be more future proof. Coreth counterpart is https://github.com/ava-labs/coreth/pull/339

How this works

Renamed existing nodeID to ids.ShortNodeID and introduced a new ids.NodeID type with no constraints over its size.

How this was tested

CI (mainnet sync tbd)

abi87 avatar Sep 08 '23 12:09 abi87

Also another thing we should think about is how we want these new node ids to look. Are we going to keep the NodeID- prefix or are we just going to just use a public key string?

@joshua-kim good point. For the time being I kept the prefix to ensure backward compatibility. We could update this later on if needed

abi87 avatar Sep 21 '23 12:09 abi87

This PR has become stale because it has been open for 30 days with no activity. Adding the lifecycle/frozen label will cause this PR to ignore lifecycle events.

github-actions[bot] avatar Feb 04 '24 00:02 github-actions[bot]

This PR has become stale because it has been open for 30 days with no activity. Adding the lifecycle/frozen label will cause this PR to ignore lifecycle events.

github-actions[bot] avatar May 19 '24 00:05 github-actions[bot]