mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-23 10:51:10 +00:00
Allow to specify multiple relay chain RPC urls for collator node (#1880)
* Allow specification of multiple urls for relay chain rpc nodes * Add pooled RPC client basics * Add list of clients to pooled client * Improve * Forward requests to dispatcher * Switch clients on error * Implement rotation logic * Improve subscription handling * Error handling cleanup * Remove retry from rpc-client * Improve naming * Improve documentation * Improve `ClientManager` abstraction * Adjust zombienet test * Add more comments * fmt * Apply reviewers comments * Extract reconnection to extra method * Add comment to reconnection method * Clean up some dependencies * Fix build * fmt * Provide alias for cli argument * Apply review comments * Rename P* to Relay* * Improve zombienet test * fmt * Fix zombienet sleep * Simplify zombienet test * Reduce log clutter and fix starting position * Do not distribute duplicated imported and finalized blocks * fmt * Apply code review suggestions * Move building of relay chain interface to `cumulus-client-service` * Refactoring to not push back into channel * FMT
This commit is contained in:
@@ -7,11 +7,18 @@ bob: is up
|
||||
charlie: is up
|
||||
one: is up
|
||||
two: is up
|
||||
three: is up
|
||||
dave: is up
|
||||
eve: is up
|
||||
|
||||
alice: parachain 2000 is registered within 225 seconds
|
||||
alice: parachain 2000 block height is at least 10 within 250 seconds
|
||||
|
||||
dave: reports block height is at least 12 within 250 seconds
|
||||
eve: reports block height is at least 12 within 250 seconds
|
||||
dave: reports block height is at least 12 within 250 seconds
|
||||
one: restart after 1 seconds
|
||||
dave: reports block height is at least 20 within 200 seconds
|
||||
two: restart after 1 seconds
|
||||
three: restart after 20 seconds
|
||||
dave: is up
|
||||
dave: reports block height is at least 30 within 200 seconds
|
||||
|
||||
@@ -25,6 +25,10 @@ chain = "rococo-local"
|
||||
name = "two"
|
||||
validator = false
|
||||
|
||||
[[relaychain.nodes]]
|
||||
name = "three"
|
||||
validator = false
|
||||
|
||||
[[parachains]]
|
||||
id = 2000
|
||||
cumulus_based = true
|
||||
@@ -35,7 +39,7 @@ cumulus_based = true
|
||||
validator = true
|
||||
image = "{{COL_IMAGE}}"
|
||||
command = "test-parachain"
|
||||
args = ["-lparachain=debug,blockchain-rpc-client=debug", "--relay-chain-rpc-url {{'one'|zombie('wsUri')}}", "-- --bootnodes {{'one'|zombie('multiAddress')}}"]
|
||||
args = ["-lparachain=trace,blockchain-rpc-client=debug", "--relay-chain-rpc-urls {{'one'|zombie('wsUri')}} {{'two'|zombie('wsUri')}} {{'three'|zombie('wsUri')}}", "-- --bootnodes {{'one'|zombie('multiAddress')}} {{'two'|zombie('multiAddress')}} {{'three'|zombie('multiAddress')}}"]
|
||||
|
||||
# run eve as parachain full node
|
||||
[[parachains.collators]]
|
||||
@@ -43,4 +47,4 @@ cumulus_based = true
|
||||
validator = true
|
||||
image = "{{COL_IMAGE}}"
|
||||
command = "test-parachain"
|
||||
args = ["-lparachain=debug,blockchain-rpc-client=debug", "--relay-chain-rpc-url {{'two'|zombie('wsUri')}}", "-- --bootnodes {{'two'|zombie('multiAddress')}}"]
|
||||
args = ["-lparachain=trace,blockchain-rpc-client=debug", "--relay-chain-rpc-urls {{'one'|zombie('wsUri')}} {{'two'|zombie('wsUri')}} {{'three'|zombie('wsUri')}}", "-- --bootnodes {{'one'|zombie('multiAddress')}} {{'two'|zombie('multiAddress')}} {{'three'|zombie('multiAddress')}}"]
|
||||
|
||||
Reference in New Issue
Block a user