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

Specify configs in caller for `TestNetwork` #3148

Closed joshua-kim closed 3 days ago

joshua-kim commented 3 days ago

Why this should be merged

Lets callers specify parameters for p2p network creation. Specifically useful if we want to re-use a tls cert to have a pre-determined node id.

How this works

Refactors code + helpers to specify configs in caller code

How this was tested

Updated example