diff --git a/config/provider_examples/provider_example_cookbook/eth_provider_with_archive_debug_trace.yml b/config/provider_examples/provider_example_cookbook/eth_provider_with_archive_debug_trace.yml index 8c772143bb..37820016d1 100644 --- a/config/provider_examples/provider_example_cookbook/eth_provider_with_archive_debug_trace.yml +++ b/config/provider_examples/provider_example_cookbook/eth_provider_with_archive_debug_trace.yml @@ -17,16 +17,32 @@ endpoints: - url: ws://my-eth-node.com/eth/archive/ws addons: - archive - - url: http://my-eth-node.com/eth/http/archive + - url: http://my-eth-node.com/eth/http/deubg addons: - debug - - url: ws://my-eth-node.com/eth/archive/ws + - url: ws://my-eth-node.com/eth/debug/ws addons: - debug - - url: http://my-eth-node.com/eth/http/archive + - url: http://my-eth-node.com/eth/http/trace addons: - trace - - url: ws://my-eth-node.com/eth/archive/ws + - url: ws://my-eth-node.com/eth/trace/ws + addons: + - trace + - url: http://my-eth-node.com/eth/http/debug+archive + addons: + - debug + - archive + - url: ws://my-eth-node.com/eth/debug+archive/ws + addons: + - debug + - archive + - url: http://my-eth-node.com/eth/http/trace+archive addons: - trace + - archive + - url: ws://my-eth-node.com/eth/trace+archive/ws + addons: + - trace + - archive \ No newline at end of file diff --git a/protocol/chainlib/chain_router.go b/protocol/chainlib/chain_router.go index 7ad077ec0f..6963bcacb2 100644 --- a/protocol/chainlib/chain_router.go +++ b/protocol/chainlib/chain_router.go @@ -303,6 +303,13 @@ func newChainRouter(ctx context.Context, nConns uint, rpcProviderEndpoint lavase } } if len(requiredMap) > len(supportedMap) { + missingKeys := []string{} + for key := range requiredMap { + if _, ok := supportedMap[key]; !ok { + missingKeys = append(missingKeys, key) + } + } + utils.LavaFormatError("missing extensions or addons in definitions", nil, utils.Attribute{Key: "missing setups", Value: missingKeys}) return nil, utils.LavaFormatError("not all requirements supported in chainRouter, missing extensions or addons in definitions", nil, utils.Attribute{Key: "required", Value: requiredMap}, utils.Attribute{Key: "supported", Value: supportedMap}) }