dshackle icon indicating copy to clipboard operation
dshackle copied to clipboard

1.14: Two upstreams share the same priority

Open PDVJAM opened this issue 1 year ago • 1 comments

Upgraded to 1.14 and see the following in logs:

2023-06-06 15:23:52.964 | WARN  |   PriorityForkChoice | Two upstreams share the same priority. It can cause an unpredicted behaviour of the Dshackle. Check config for alchemy and infura, both have 10 priority

But the config is actually has different priorities for alchemy and infura upstreams:

    - id: alchemy
      chain: ethereum
      role: secondary
      priority: 20
      options:
        disable-validation: true
        validation-interval: 60
      connection:
        ethereum:
          rpc:
            url: "https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_KEY}"
    - id: infura
      chain: ethereum
      role: primary
      priority: 10
      options:
        disable-validation: true
        validation-interval: 60
      connection:
        ethereum:
          rpc:
            url: "https://mainnet.infura.io/v3/${INFURA_DA_USER}"
          ws:
            url: "wss://mainnet.infura.io/ws/v3/${INFURA_DA_USER}"

Seems like a small bug.

PDVJAM avatar Jun 06 '23 15:06 PDVJAM