Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Upgrade guide for v0.7.1 #547

Closed
fewensa opened this issue Nov 25, 2022 · 2 comments
Closed

Upgrade guide for v0.7.1 #547

fewensa opened this issue Nov 25, 2022 · 2 comments

Comments

@fewensa
Copy link
Contributor

fewensa commented Nov 25, 2022

We made changes to this version:

If you already run any s2s bridges. you can upgrade to this version. this is optional. You can also choose not to upgrade. It will have no effect.

darwinia-ethereum

you should update your config.

Update general block

[general]
# Whether to relay beacon headers from ethereum to darwinia
header_ethereum_to_darwinia = true
# Whether to relay sync commit from ethereum to darwinia
sync_commit_ethereum_to_darwinia = true
# Whether to relay execution layer state root from ethereum to darwinia
execution_layer_ethereum_to_darwinia = true
# Whether to sign the messages root and relay headers from darwinia to ethereum
ecdsa_service = true
# Whether to relay messages from ethereum to darwinia
msg_ethereum_to_darwinia = true
# Whether to relay messages from darwinia to ethereum
msg_darwinia_to_ethereum = true
# Max number of messages every delivery
max_message_num_per_relaying = 15
# Minimum seconds between two header relay
header_relay_minimum_interval = 900

Chagne to

[general]
enable_beacon_header_relay = true
enable_sync_commit_relay = true
enable_execution_header_layer = true
enable_ecdsa_relay = true
enable_message_execution_to_evm = true
enable_message_evm_to_execution = true
max_message_num_per_relaying = 15
header_relay_minimum_interval = 900
old new
header_ethereum_to_darwinia enable_beacon_header_relay
sync_commit_ethereum_to_darwinia enable_sync_commit_relay
execution_layer_ethereum_to_darwinia enable_execution_header_layer
ecdsa_service enable_ecdsa_relay
msg_ethereum_to_darwinia enable_message_execution_to_evm
msg_darwinia_to_ethereum enable_message_evm_to_execution

do not change the value of these keys when you upgrade.

Update index block

Change from

[index]
darwinia = { endpoint = "https://subql.darwinia.network/subql-bridger-darwinia/" }
darwinia_evm = { endpoint = "https://thegraph.darwinia.network/ethv2/subgraphs/name/bridge-darwinia" }

to

[index]
substrate_chain = { endpoint = "https://subql.darwinia.network/subql-bridger-darwinia/" }
evm_chain         = { endpoint = "https://thegraph.darwinia.network/ethv2/subgraphs/name/bridge-darwinia" }

Update ethereum block

Create new block as name [beacon]

[beacon]
# Beacon chain api endpoint and api supplier
endpoint                  = "http://unstable.mainnet.beacon-api.nimbus.team"
api_supplier              = "Nimbus"

Remove [ethereum].endpoint and rename [ethereum].execution_layer_endpoint to [ethereum].endpoint

Full config template please visit

bridge-darwinia-ethereum.toml

@furoxr furoxr mentioned this issue Nov 28, 2022
@furoxr
Copy link
Contributor

furoxr commented Nov 28, 2022

For Darwinia<>Ethereum

Update contract address in the config:

[darwinia_evm]
contract_address = "0xD2A37C4523542F2dFD7Cb792D2aeAd5c61C1bAAE"
execution_layer_contract_address = "0xeC3c9B4d3674B3D03fdf20b082A3C2c669075990"

And there are three beacon api supplier could be used by bridger:

Nimbus:

Lodestar:

@hackfisher
Copy link
Contributor

10|v2  | 2022-11-29 05:30:58  INFO relay-e2e: [Darwinia][ECDSA][collectingMessages] Track scan block: 11336650
10|v2  | 2022-11-29 05:30:58  WARN tracker: The track key [scan.darwinia.collected-message.running] isn't running (value is not `true`), wait 3 seconds check again.
10|v2  | 2022-11-29 05:31:01  WARN tracker: The track key [scan.darwinia.collected-authorities.running] isn't running (value is not `true`), wait 3 seconds check again.
10|v2  | 2022-11-29 05:31:01  WARN tracker: The track key [scan.darwinia.collected-message.running] isn't running (value is not `true`), wait 3 seconds check again.
10|v2  | 2022-11-29 05:31:04  WARN tracker: The track key [scan.darwinia.collected-authorities.running] isn't running (value is not `true`), wait 3 seconds check again.
10|v2  | 2022-11-29 05:31:04  WARN tracker: The track key [scan.darwinia.collected-message.running] isn't running (value is not `true`), wait 3 seconds check again.
10|v2  | 2022-11-29 05:31:07  WARN tracker: The track key [scan.darwinia.collected-authorities.running] isn't running (value is not `true`), wait 3 seconds check again.
10|v2  | 2022-11-29 05:31:07  WARN tracker: The track key [scan.darwinia.collected-message.running] isn't running (value is not `true`), wait 3 seconds check again.

@fewensa fewensa closed this as completed Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants