From 68f4ad64a4d7c481f8e924307107d42bae887a98 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Tue, 24 Nov 2020 21:32:30 +0200 Subject: [PATCH] Disable exception if depositAddress is not available. --- beacon_chain/rpc/config_api.nim | 6 ------ 1 file changed, 6 deletions(-) diff --git a/beacon_chain/rpc/config_api.nim b/beacon_chain/rpc/config_api.nim index 4147d1dd6..ec80f725a 100644 --- a/beacon_chain/rpc/config_api.nim +++ b/beacon_chain/rpc/config_api.nim @@ -31,9 +31,6 @@ proc installConfigApiHandlers*(rpcServer: RpcServer, node: BeaconNode) = else: "0x" & $node.eth1Monitor.depositContractAddress() - if len(depositAddress) == 0: - raise newException(CatchableError, "Internal server error") - return %{ "MAX_COMMITTEES_PER_SLOT": $MAX_COMMITTEES_PER_SLOT, "TARGET_COMMITTEE_SIZE": $TARGET_COMMITTEE_SIZE, @@ -114,9 +111,6 @@ proc installConfigApiHandlers*(rpcServer: RpcServer, node: BeaconNode) = else: "0x" & $node.eth1Monitor.depositContractAddress() - if len(depositAddress) == 0: - raise newException(CatchableError, "Internal server error") - return %{ "chain_id": $DEPOSIT_CHAIN_ID, "address": depositAddress