mirror of
https://github.com/luxfi/netrunner.git
synced 2026-07-27 00:04:23 +00:00
fix: correct network ID usage and remove HID conflicts
- Remove ledger-lux-go transitive dependency - Fix Network ID vs Chain ID confusion in genesis_config.go - Use constants.MainnetID/TestnetID instead of configs.ChainID - Fix port base calculation for multi-network mode - Add snapshot server functionality - Update protobuf definitions with new RPC methods - Add mnemonic test coverage
This commit is contained in:
@@ -71,6 +71,8 @@ type Config struct {
|
||||
BinaryPath string `json:"binaryPath"`
|
||||
// Chain config files to use per default, if not specified in node config
|
||||
ChainConfigFiles map[string]string `json:"chainConfigFiles"`
|
||||
// Genesis config files for EVM chains (per blockchain ID)
|
||||
GenesisConfigFiles map[string]string `json:"genesisConfigFiles"`
|
||||
// Upgrade config files to use per default, if not specified in node config
|
||||
UpgradeConfigFiles map[string]string `json:"upgradeConfigFiles"`
|
||||
// P-Chain config files to use per default, if not specified in node config
|
||||
|
||||
@@ -99,6 +99,10 @@ type Network interface {
|
||||
// Network is stopped in order to do a safe preservation
|
||||
// Returns the full local path to the snapshot dir
|
||||
SaveSnapshot(context.Context, string) (string, error)
|
||||
// SaveHotSnapshot saves a snapshot without stopping the network
|
||||
// Uses CoW on APFS (macOS) for instant snapshots
|
||||
// WARNING: May have minor inconsistencies if writes occur during copy
|
||||
SaveHotSnapshot(context.Context, string) (string, error)
|
||||
// Remove network snapshot
|
||||
RemoveSnapshot(string) error
|
||||
// Get name of available snapshots
|
||||
|
||||
@@ -79,6 +79,8 @@ type Config struct {
|
||||
ConfigFile string `json:"configFile"`
|
||||
// May be nil.
|
||||
ChainConfigFiles map[string]string `json:"chainConfigFiles"`
|
||||
// May be nil. Genesis files for EVM chains (genesis.json)
|
||||
GenesisConfigFiles map[string]string `json:"genesisConfigFiles"`
|
||||
// May be nil.
|
||||
UpgradeConfigFiles map[string]string `json:"upgradeConfigFiles"`
|
||||
// May be nil. P-Chain chain (formerly subnet) config files.
|
||||
|
||||
Reference in New Issue
Block a user