Fix some build problems and warnings

This commit is contained in:
Zahary Karadjov 2020-05-25 20:33:03 +03:00
parent 8760494c72
commit b6c9de968f
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
4 changed files with 7 additions and 7 deletions

View File

@ -16,14 +16,14 @@ import
chronicles,
# Local modules
spec/[datatypes, crypto, helpers],
spec/[datatypes, crypto, digest, helpers],
conf, time, beacon_chain_db, sszdump,
attestation_pool, block_pool, eth2_network,
beacon_node_types, mainchain_monitor, request_manager
# TODO figure out how to silence the `unused pragma` warning for specific builds of this
# https://discordapp.com/channels/613988663034118151/614014714590134292/713053239297179668
import spec/digest
# This removes an invalid Nim warning that the digest module is unused here
# It's currently used for `shortLog(head.blck.root)`
type Eth2Digest = digest.Eth2Digest
type
RpcServer* = RpcHttpServer

View File

@ -83,7 +83,7 @@ var BeaconSyncProtocolObj = initProtocol("BeaconSync", createPeerState[Peer,
ref[BeaconSyncPeerState:ObjectType]], createNetworkState[Eth2Node,
ref[BeaconSyncNetworkState:ObjectType]])
var BeaconSyncProtocol = addr BeaconSyncProtocolObj
template protocolInfo*(P`gensym187610300: type BeaconSync): auto =
template protocolInfo*(PROTO: type BeaconSync): auto =
BeaconSyncProtocol
proc status*(peer: Peer; theirStatus: StatusMsg;

2
vendor/nim-eth vendored

@ -1 +1 @@
Subproject commit 218192aa0900518ebc65a1d53efb3be0667628c5
Subproject commit ff546d27c3e65df806e499a17e1918a545522094

2
vendor/nim-stew vendored

@ -1 +1 @@
Subproject commit a333eb080f89a035415a17d583a651d40b309b12
Subproject commit cf837b3fb6108f666c76523688178d3c2dd9ba93