keep-core icon indicating copy to clipboard operation
keep-core copied to clipboard

Assert connected network type on client start

Open nkuba opened this issue 2 years ago • 0 comments

This check is based on the flags declared by the user in config. Could we add two checks?

  1. If Ethereum is testnet, then Bitcoin also has to be testnet, If Ethereum is mainneg then Bitcoin also has to be mainnet.
  2. 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

nkuba avatar Jun 05 '23 10:06 nkuba