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:
|
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
|
||||||
|
|
Loading…
Reference in New Issue