ava-labs / avalanchego

Go implementation of an Avalanche node.
https://avax.network
BSD 3-Clause "New" or "Revised" License
2.09k stars 646 forks source link

[vms/platformvm] Add tracking of a Subnet manager #3126

Open dhrubabasu opened 1 week ago

dhrubabasu commented 1 week ago

Why this should be merged

First step towards implementing SetSubnetValidatorManagerTx from https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/77-reinventing-subnets/README.md

For the first SetSubnetValidatorManagerTx, the sourceChainID should be ids.Empty and the sourceAddress should be []byte{}.

How this works

Adds support for storing and retrieving a chainID and addr for each Subnet

How this was tested

CI + added UTs