mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-17 08:56:45 +00:00
Disable exception if depositAddress is not available.
This commit is contained in:
parent
af3862da48
commit
68f4ad64a4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user