darwinia-network / bridger

Relayer client implementation for Darwinia LCMP protocols.
https://rust-docs.darwinia.network/bridger
GNU General Public License v3.0
11 stars 10 forks source link

Upgrade guide for v0.7.1 #547

Closed fewensa closed 1 year ago

fewensa commented 1 year ago

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 https://github.com/darwinia-network/bridger/blob/0f60fa2ba90543983d743527cf1682c9a6265cd8/.maintain/config/bridge-darwinia-ethereum.toml#L1-L17 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 commented 1 year ago

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 commented 1 year ago
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.