remove XDeclaredButNotUsed spam
This commit is contained in:
parent
f98dd9b1bf
commit
b4850fbb06
|
@ -28,10 +28,6 @@ declareGauge beacon_head_slot,
|
|||
declareGauge beacon_head_root,
|
||||
"Root of the head block of the beacon chain"
|
||||
|
||||
# https://github.com/ethereum/eth2.0-metrics/blob/master/metrics.md#additional-metrics
|
||||
declareGauge beacon_pending_exits,
|
||||
"Number of pending voluntary exits in local operation pool" # On slot
|
||||
|
||||
# Metrics for tracking attestation and beacon block loss
|
||||
declareCounter beacon_attestations_sent,
|
||||
"Number of beacon chain attestations sent by this peer"
|
||||
|
@ -399,7 +395,7 @@ proc proposeBlock(node: BeaconNode,
|
|||
var
|
||||
tmpState = hashedState
|
||||
|
||||
let ok = state_transition(tmpState, newBlock, {skipValidation})
|
||||
discard state_transition(tmpState, newBlock, {skipValidation})
|
||||
# TODO only enable in fast-fail debugging situations
|
||||
# otherwise, bad attestations can bring down network
|
||||
# doAssert ok # TODO: err, could this fail somehow?
|
||||
|
|
|
@ -59,9 +59,9 @@ template runTest(testName: string, identifier: untyped) =
|
|||
|
||||
if postRef.isNil:
|
||||
expect(AssertionError):
|
||||
let done = process_deposit(sr_pre[], depositRef[], flags)
|
||||
discard process_deposit(sr_pre[], depositRef[], flags)
|
||||
else:
|
||||
let done = process_deposit(sr_pre[], depositRef[], flags)
|
||||
discard process_deposit(sr_pre[], depositRef[], flags)
|
||||
reportDiff(sr_pre, sr_post)
|
||||
|
||||
`testImpl _ operations_deposits _ identifier`()
|
||||
|
|
|
@ -36,7 +36,6 @@ template runValidTest(testName: string, identifier: untyped, num_blocks: int): u
|
|||
stateRef[] = parseTest(testDir/"pre.ssz", SSZ, BeaconState)
|
||||
postRef[] = parseTest(testDir/"post.ssz", SSZ, BeaconState)
|
||||
|
||||
var success = true
|
||||
for i in 0 ..< num_blocks:
|
||||
let blck = parseTest(testDir/"blocks_" & $i & ".ssz", SSZ, BeaconBlock)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import
|
||||
# Standard library
|
||||
os, unittest, strutils, streams, strformat, strscans,
|
||||
os, unittest, strutils, streams, strformat,
|
||||
macros, sets,
|
||||
# Status libraries
|
||||
stint, stew/bitseqs,
|
||||
|
|
Loading…
Reference in New Issue