node icon indicating copy to clipboard operation
node copied to clipboard

Make `UpdateConfigFromCore` and ZetaClient config more future-proof

Open lumtis opened this issue 2 years ago • 0 comments

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

lumtis avatar Nov 15 '23 12:11 lumtis