node
node copied to clipboard
Make `UpdateConfigFromCore` and ZetaClient config more future-proof
UpdateConfigFromCore currently considers there is a single Bitcoin chain supported in ZetaClient and a chain is now a Bitcoin chain is an EVM chain
if common.IsBitcoinChain(coreParam.ChainId) {
newBTCParams = coreParam
} else {
newEVMParams[coreParam.ChainId] = coreParam
}
I suggest to update the format of the ZetaClient config with more like a generic list of chains, so we can consider several Bitcoin based chains and any other chains compared to EVM chains