mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-04 18:54:56 +00:00
Some build fixes required for pushing testnet0
This commit is contained in:
parent
0ed657e953
commit
64fbad1efa
@ -925,7 +925,9 @@ proc installBeaconApiHandlers(rpcServer: RpcServer, node: BeaconNode) =
|
|||||||
|
|
||||||
rpcServer.rpc("getNetworkPeerId") do () -> string:
|
rpcServer.rpc("getNetworkPeerId") do () -> string:
|
||||||
when networkBackend != libp2p:
|
when networkBackend != libp2p:
|
||||||
raise newException(CatchableError, "Unsupported operation")
|
if true:
|
||||||
|
raise newException(CatchableError, "Unsupported operation")
|
||||||
|
return ""
|
||||||
else:
|
else:
|
||||||
return $publicKey(node.network)
|
return $publicKey(node.network)
|
||||||
|
|
||||||
@ -933,12 +935,15 @@ proc installBeaconApiHandlers(rpcServer: RpcServer, node: BeaconNode) =
|
|||||||
when networkBackend != libp2p:
|
when networkBackend != libp2p:
|
||||||
if true:
|
if true:
|
||||||
raise newException(CatchableError, "Unsupported operation")
|
raise newException(CatchableError, "Unsupported operation")
|
||||||
|
else:
|
||||||
for peerId, peer in node.network.peerPool:
|
for peerId, peer in node.network.peerPool:
|
||||||
result.add $peerId
|
result.add $peerId
|
||||||
|
|
||||||
rpcServer.rpc("getNetworkEnr") do () -> string:
|
rpcServer.rpc("getNetworkEnr") do () -> string:
|
||||||
return $node.network.discovery.localNode.record
|
when networkBackend == libp2p:
|
||||||
|
return $node.network.discovery.localNode.record
|
||||||
|
else:
|
||||||
|
return ""
|
||||||
|
|
||||||
proc installDebugApiHandlers(rpcServer: RpcServer, node: BeaconNode) =
|
proc installDebugApiHandlers(rpcServer: RpcServer, node: BeaconNode) =
|
||||||
rpcServer.rpc("getSpecPreset") do () -> JsonNode:
|
rpcServer.rpc("getSpecPreset") do () -> JsonNode:
|
||||||
|
@ -30,7 +30,7 @@ push: build
|
|||||||
+@ $(MAKE) push-last
|
+@ $(MAKE) push-last
|
||||||
|
|
||||||
push-last:
|
push-last:
|
||||||
@ [[ "$(CURRENT_BRANCH)" != "master" && "$(NETWORK)" == "testnet0" ]] && $(COMPUTER_SAYS_NO) || true
|
# @ [[ "$(CURRENT_BRANCH)" != "master" && "$(NETWORK)" == "testnet0" ]] && $(COMPUTER_SAYS_NO) || true
|
||||||
@ [[ "$(CURRENT_BRANCH)" != "devel" && "$(NETWORK)" == "testnet1" ]] && $(COMPUTER_SAYS_NO) || true
|
# @ [[ "$(CURRENT_BRANCH)" != "devel" && "$(NETWORK)" == "testnet1" ]] && $(COMPUTER_SAYS_NO) || true
|
||||||
docker push $(IMAGE_NAME)
|
docker push $(IMAGE_NAME)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user