Determines which chain a set of network magic bytes belongs to.
Declared in <kernel/chainparams.h>
std::optional<ChainType>
GetNetworkForMagic(MessageStartChars const& pchMessageStart);
The matching chain type, or an empty optional if unrecognized.
| Name | Description |
|---|---|
| pchMessageStart | The message-start bytes to identify. |