Skip to content

Commit

Permalink
Fix substrate rpc reconnection issue (#584)
Browse files Browse the repository at this point in the history
* fix substrate rpc reconnection issue

* update config

* version bump
  • Loading branch information
salman01zp authored Sep 22, 2023
1 parent 270e1b8 commit 158dae8
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 50 deletions.
36 changes: 18 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
version = "0.5.14-dev"
version = "0.5.15-dev"
authors = ["Webb Developers <hello@webb.tools>"]
license = "Apache-2.0"
documentation = "https://docs.rs/webb-relayer"
Expand Down
8 changes: 4 additions & 4 deletions config/development/evm-blanknet/athena.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ enabled = true
# - SignatureBridge
contract = "VAnchor"
# The address of the contract
address = "0x6595b34ED0a270B10a586FC1EA22030A95386f1e"
address = "0x91eB86019FD8D7c5a9E31143D422850A13F670A3"
# The deployed block number of the contract. When a relayer does not have information for
# this contract in its store, it will start to sync and query for relevant historical data
# starting at this block number
Expand All @@ -54,8 +54,8 @@ events-watcher = { enabled = true, polling-interval = 1000, print-progress-inter
# Entries for this anchor contract's connected edges.
# These fields are used to determine the generation of AnchorUpdate proposals
linked-anchors = [
{ type = "Evm", chain = "hermes", chain-id = 5001, address = "0x6595b34ED0a270B10a586FC1EA22030A95386f1e" },
{ type = "Evm", chain = "demeter", chain-id = 5003, address = "0x6595b34ED0a270B10a586FC1EA22030A95386f1e" },
{ type = "Evm", chain = "hermes", chain-id = 5001, address = "0x91eB86019FD8D7c5a9E31143D422850A13F670A3" },
{ type = "Evm", chain = "demeter", chain-id = 5003, address = "0x91eB86019FD8D7c5a9E31143D422850A13F670A3" },
]

# Proposal signing backend can have a value of "Mocked" or the name of the DKG configuration.
Expand All @@ -66,6 +66,6 @@ proposal-signing-backend = { type = "Mocked", private-key = "$GOVERNOR_PRIVATE_K

[[evm.athena.contracts]]
contract = "SignatureBridge"
address = "0xf2e246bb76df876cef8b38ae84130f4f55de395b"
address = "0x2946259E0334f33A064106302415aD3391BeD384"
deployed-at = 1
events-watcher = { enabled = true, polling-interval = 1000, print-progress-interval = 60000 }
8 changes: 4 additions & 4 deletions config/development/evm-blanknet/demeter.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ enabled = true
# - SignatureBridge
contract = "VAnchor"
# The address of the contract
address = "0x6595b34ED0a270B10a586FC1EA22030A95386f1e"
address = "0x91eB86019FD8D7c5a9E31143D422850A13F670A3"
# The deployed block number of the contract. When a relayer does not have information for
# this contract in its store, it will start to sync and query for relevant historical data
# starting at this block number
Expand All @@ -53,8 +53,8 @@ events-watcher = { enabled = true, polling-interval = 10000, print-progress-inte
# Entries for this anchor contract's connected edges.
# These fields are used to determine the generation of AnchorUpdate proposals
linked-anchors = [
{ type = "Evm", chain = "hermes", chain-id = 5001, address = "0x6595b34ED0a270B10a586FC1EA22030A95386f1e" },
{ type = "Evm", chain = "athena", chain-id = 5002, address = "0x6595b34ED0a270B10a586FC1EA22030A95386f1e" },
{ type = "Evm", chain = "hermes", chain-id = 5001, address = "0x91eB86019FD8D7c5a9E31143D422850A13F670A3" },
{ type = "Evm", chain = "athena", chain-id = 5002, address = "0x91eB86019FD8D7c5a9E31143D422850A13F670A3" },
]
# Proposal signing backend can have a value of "Mocked" or the name of the DKG configuration.
# When the type is "Mocked", the supplied private-key will sign any proposed updates and submit
Expand All @@ -64,6 +64,6 @@ proposal-signing-backend = { type = "Mocked", private-key = "$GOVERNOR_PRIVATE_K

[[evm.demeter.contracts]]
contract = "SignatureBridge"
address = "0xf2e246bb76df876cef8b38ae84130f4f55de395b"
address = "0x2946259E0334f33A064106302415aD3391BeD384"
deployed-at = 1
events-watcher = { enabled = true, polling-interval = 10000, print-progress-interval = 0 }
8 changes: 4 additions & 4 deletions config/development/evm-blanknet/hermes.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ enabled = true
# - SignatureBridge
contract = "VAnchor"
# The address of the contract
address = "0x6595b34ED0a270B10a586FC1EA22030A95386f1e"
address = "0x91eB86019FD8D7c5a9E31143D422850A13F670A3"
# The deployed block number of the contract. When a relayer does not have information for
# this contract in its store, it will start to sync and query for relevant historical data
# starting at this block number
Expand All @@ -53,8 +53,8 @@ events-watcher = { enabled = true, polling-interval = 1000, print-progress-inter
# Entries for this anchor contract's connected edges.
# These fields are used to determine the generation of AnchorUpdate proposals
linked-anchors = [
{ type = "Evm", chain = "athena", chain-id = 5002, address = "0x6595b34ED0a270B10a586FC1EA22030A95386f1e" },
{ type = "Evm", chain = "demeter", chain-id = 5003, address = "0x6595b34ED0a270B10a586FC1EA22030A95386f1e" },
{ type = "Evm", chain = "athena", chain-id = 5002, address = "0x91eB86019FD8D7c5a9E31143D422850A13F670A3" },
{ type = "Evm", chain = "demeter", chain-id = 5003, address = "0x91eB86019FD8D7c5a9E31143D422850A13F670A3" },
]
# Proposal signing backend can have a value of "Mocked" or the name of the DKG configuration.
# When the type is "Mocked", the supplied private-key will sign any proposed updates and submit
Expand All @@ -64,6 +64,6 @@ proposal-signing-backend = { type = "Mocked", private-key = "$GOVERNOR_PRIVATE_K

[[evm.hermes.contracts]]
contract = "SignatureBridge"
address = "0xf2e246bb76df876cef8b38ae84130f4f55de395b"
address = "0x2946259E0334f33A064106302415aD3391BeD384"
deployed-at = 1
events-watcher = { enabled = true, polling-interval = 1000, print-progress-interval = 60000 }
8 changes: 4 additions & 4 deletions config/development/evm-local-tangle/athena.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"contracts": [
{
"contract": "VAnchor",
"address": "0x6595b34ED0a270B10a586FC1EA22030A95386f1e",
"address": "0x91eB86019FD8D7c5a9E31143D422850A13F670A3",
"deployed-at": 1,
"events-watcher": {
"enabled": true,
Expand All @@ -30,13 +30,13 @@
"type": "Evm",
"chain": "hermes",
"chain-id": 5001,
"address": "0x6595b34ED0a270B10a586FC1EA22030A95386f1e"
"address": "0x91eB86019FD8D7c5a9E31143D422850A13F670A3"
},
{
"type": "Evm",
"chain": "demeter",
"chain-id": 5003,
"address": "0x6595b34ED0a270B10a586FC1EA22030A95386f1e"
"address": "0x91eB86019FD8D7c5a9E31143D422850A13F670A3"
}
],
"proposal-signing-backend": {
Expand All @@ -46,7 +46,7 @@
},
{
"contract": "SignatureBridge",
"address": "0xf2e246bb76df876cef8b38ae84130f4f55de395b",
"address": "0x2946259E0334f33A064106302415aD3391BeD384",
"deployed-at": 1,
"events-watcher": {
"enabled": true,
Expand Down
8 changes: 4 additions & 4 deletions config/development/evm-local-tangle/demeter.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"contracts": [
{
"contract": "VAnchor",
"address": "0x6595b34ED0a270B10a586FC1EA22030A95386f1e",
"address": "0x91eB86019FD8D7c5a9E31143D422850A13F670A3",
"deployed-at": 1,
"events-watcher": {
"enabled": true,
Expand All @@ -30,13 +30,13 @@
"type": "Evm",
"chain": "hermes",
"chain-id": 5001,
"address": "0x6595b34ED0a270B10a586FC1EA22030A95386f1e"
"address": "0x91eB86019FD8D7c5a9E31143D422850A13F670A3"
},
{
"type": "Evm",
"chain": "athena",
"chain-id": 5002,
"address": "0x6595b34ED0a270B10a586FC1EA22030A95386f1e"
"address": "0x91eB86019FD8D7c5a9E31143D422850A13F670A3"
}
],
"proposal-signing-backend": {
Expand All @@ -46,7 +46,7 @@
},
{
"contract": "SignatureBridge",
"address": "0xf2e246bb76df876cef8b38ae84130f4f55de395b",
"address": "0x2946259E0334f33A064106302415aD3391BeD384",
"deployed-at": 1,
"events-watcher": {
"enabled": true,
Expand Down
8 changes: 4 additions & 4 deletions config/development/evm-local-tangle/hermes.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"contracts": [
{
"contract": "VAnchor",
"address": "0x6595b34ED0a270B10a586FC1EA22030A95386f1e",
"address": "0x91eB86019FD8D7c5a9E31143D422850A13F670A3",
"deployed-at": 1,
"events-watcher": {
"enabled": true,
Expand All @@ -30,13 +30,13 @@
"type": "Evm",
"chain": "athena",
"chain-id": 5002,
"address": "0x6595b34ED0a270B10a586FC1EA22030A95386f1e"
"address": "0x91eB86019FD8D7c5a9E31143D422850A13F670A3"
},
{
"type": "Evm",
"chain": "demeter",
"chain-id": 5003,
"address": "0x6595b34ED0a270B10a586FC1EA22030A95386f1e"
"address": "0x91eB86019FD8D7c5a9E31143D422850A13F670A3"
}
],
"proposal-signing-backend": {
Expand All @@ -46,7 +46,7 @@
},
{
"contract": "SignatureBridge",
"address": "0xf2e246bb76df876cef8b38ae84130f4f55de395b",
"address": "0x2946259E0334f33A064106302415aD3391BeD384",
"deployed-at": 1,
"events-watcher": {
"enabled": true,
Expand Down
Loading

0 comments on commit 158dae8

Please sign in to comment.