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

View File

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