keep-core
keep-core copied to clipboard
Assert connected network type on client start
This check is based on the flags declared by the user in config. Could we add two checks?
- If Ethereum is testnet, then Bitcoin also has to be testnet, If Ethereum is mainneg then Bitcoin also has to be mainnet.
- That the actual Ethereum and Electrum servers the node is connected to supports the desired networks? We have a similar solution in the Electrum TS library: https://github.com/keep-network/tbtc-v2/blob/7f48d6362f8bfc9a2931c4087e5eba28efee5370/typescript/src/electrum.ts#L208-L224
Originally posted by @nkuba in https://github.com/keep-network/keep-core/pull/3596#discussion_r1217816017