Disable exception if depositAddress is not available.

This commit is contained in:
cheatfate 2020-11-24 21:32:30 +02:00 committed by zah
parent af3862da48
commit 68f4ad64a4
1 changed files with 0 additions and 6 deletions

View File

@ -31,9 +31,6 @@ proc installConfigApiHandlers*(rpcServer: RpcServer, node: BeaconNode) =
else: else:
"0x" & $node.eth1Monitor.depositContractAddress() "0x" & $node.eth1Monitor.depositContractAddress()
if len(depositAddress) == 0:
raise newException(CatchableError, "Internal server error")
return %{ return %{
"MAX_COMMITTEES_PER_SLOT": $MAX_COMMITTEES_PER_SLOT, "MAX_COMMITTEES_PER_SLOT": $MAX_COMMITTEES_PER_SLOT,
"TARGET_COMMITTEE_SIZE": $TARGET_COMMITTEE_SIZE, "TARGET_COMMITTEE_SIZE": $TARGET_COMMITTEE_SIZE,
@ -114,9 +111,6 @@ proc installConfigApiHandlers*(rpcServer: RpcServer, node: BeaconNode) =
else: else:
"0x" & $node.eth1Monitor.depositContractAddress() "0x" & $node.eth1Monitor.depositContractAddress()
if len(depositAddress) == 0:
raise newException(CatchableError, "Internal server error")
return %{ return %{
"chain_id": $DEPOSIT_CHAIN_ID, "chain_id": $DEPOSIT_CHAIN_ID,
"address": depositAddress "address": depositAddress