Skip to content

[fix][relayer][core] preserve blockchain properties on partial update#78

Open
fengjy73 wants to merge 1 commit into
AntChainOpenLabs:mainfrom
fengjy73:fix/relayer-partial-blockchain-update
Open

[fix][relayer][core] preserve blockchain properties on partial update#78
fengjy73 wants to merge 1 commit into
AntChainOpenLabs:mainfrom
fengjy73:fix/relayer-partial-blockchain-update

Conversation

@fengjy73
Copy link
Copy Markdown
Contributor

@fengjy73 fengjy73 commented Jun 4, 2026

CLI/API updates may provide only a subset of blockchain properties, such as heterogeneous_bbc_context. The previous flow merged the partial config into the existing BlockchainMeta, but then persisted a newly constructed meta from only the partial properties. That could wipe fields that were not present in the update payload.

Affected fields include plugin server metadata, init block height, AM/SDP/PTC contract addresses, and domain registration state.

  • Persist the merged BlockchainMeta in BlockchainManager.updateBlockchain(...).
  • Merge ptc_contract_address in BlockchainMeta.updateProperties(...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant