fix: release v0.36 (#3475)

* group manager better logs debug chainId
* avoid printing eth client url which contains api key
This commit is contained in:
Ivan FB 2025-06-27 12:47:16 +02:00 committed by GitHub
parent dbecd721f9
commit b81a593dd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View File

@ -158,8 +158,7 @@ proc logConf*(conf: WakuConf) =
contract = rlnRelayConf.ethContractAddress.string,
maxMessageSize = conf.maxMessageSizeBytes,
rlnEpochSizeSec = rlnRelayConf.epochSizeSec,
rlnRelayUserMessageLimit = rlnRelayConf.userMessageLimit,
ethClientUrls = rlnRelayConf.ethClientUrls
rlnRelayUserMessageLimit = rlnRelayConf.userMessageLimit
proc validateNodeKey(wakuConf: WakuConf): Result[void, string] =
wakuConf.nodeKey.getPublicKey().isOkOr:

View File

@ -10,7 +10,7 @@ import
nimcrypto/keccak as keccak,
stint,
json,
std/[strutils, tables, algorithm],
std/[strutils, tables, algorithm, strformat],
stew/[byteutils, arrayops],
sequtils
@ -669,7 +669,9 @@ method init*(g: OnchainGroupManager): Future[GroupManagerResult[void]] {.async.}
elif metadataGetOptRes.get().isSome():
let metadata = metadataGetOptRes.get().get()
if metadata.chainId != g.chainId:
return err("persisted data: chain id mismatch")
return err(
fmt"chain id mismatch. persisted={metadata.chainId}, smart_contract_chainId={g.chainId}"
)
if metadata.contractAddress != g.ethContractAddress.toLower():
return err("persisted data: contract address mismatch")