Set styleCheck to error for nimbus_verified_proxy + some cleanup (#2297)
This commit is contained in:
parent
c876729c4d
commit
f275805198
|
@ -18,6 +18,6 @@
|
||||||
-d:"libp2p_pki_schemes=secp256k1"
|
-d:"libp2p_pki_schemes=secp256k1"
|
||||||
|
|
||||||
--styleCheck:usages
|
--styleCheck:usages
|
||||||
--styleCheck:hint
|
--styleCheck:error
|
||||||
--hint[ConvFromXtoItselfNotNeeded]:off
|
--hint[ConvFromXtoItselfNotNeeded]:off
|
||||||
--hint[Processing]:off
|
--hint[Processing]:off
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
{.push raises: [].}
|
{.push raises: [].}
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[atomics, json, os, strutils],
|
std/[json, os, strutils],
|
||||||
chronicles,
|
chronicles,
|
||||||
chronos,
|
chronos,
|
||||||
confutils,
|
confutils,
|
||||||
|
@ -204,7 +204,7 @@ proc run*(
|
||||||
info "New LC finalized header", finalized_header = shortLog(forkyHeader)
|
info "New LC finalized header", finalized_header = shortLog(forkyHeader)
|
||||||
if headerCallback != nil:
|
if headerCallback != nil:
|
||||||
try:
|
try:
|
||||||
headerCallback(Json.encode(forkyHeader), 0)
|
headerCallback(cstring(Json.encode(forkyHeader)), 0)
|
||||||
except SerializationError as e:
|
except SerializationError as e:
|
||||||
notice "finalizedHeaderCallback exception"
|
notice "finalizedHeaderCallback exception"
|
||||||
|
|
||||||
|
@ -217,7 +217,7 @@ proc run*(
|
||||||
optimisticProcessor.setOptimisticHeader(forkyHeader.beacon)
|
optimisticProcessor.setOptimisticHeader(forkyHeader.beacon)
|
||||||
if headerCallback != nil:
|
if headerCallback != nil:
|
||||||
try:
|
try:
|
||||||
headerCallback(Json.encode(forkyHeader), 1)
|
headerCallback(cstring(Json.encode(forkyHeader)), 1)
|
||||||
except SerializationError as e:
|
except SerializationError as e:
|
||||||
notice "optimisticHeaderCallback exception"
|
notice "optimisticHeaderCallback exception"
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
|
|
||||||
import
|
import
|
||||||
std/typetraits,
|
std/typetraits,
|
||||||
chronicles, # Added for generic sandwich that hits in core_db :(
|
|
||||||
eth/common/eth_types as etypes,
|
eth/common/eth_types as etypes,
|
||||||
eth/[trie, rlp],
|
eth/[trie, rlp],
|
||||||
stint,
|
stint,
|
||||||
|
|
Loading…
Reference in New Issue