Set styleCheck to error for nimbus_verified_proxy + some cleanup (#2297)

This commit is contained in:
Kim De Mey 2024-06-05 19:44:26 +02:00 committed by GitHub
parent c876729c4d
commit f275805198
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 5 deletions

View File

@ -18,6 +18,6 @@
-d:"libp2p_pki_schemes=secp256k1"
--styleCheck:usages
--styleCheck:hint
--styleCheck:error
--hint[ConvFromXtoItselfNotNeeded]:off
--hint[Processing]:off

View File

@ -8,7 +8,7 @@
{.push raises: [].}
import
std/[atomics, json, os, strutils],
std/[json, os, strutils],
chronicles,
chronos,
confutils,
@ -204,7 +204,7 @@ proc run*(
info "New LC finalized header", finalized_header = shortLog(forkyHeader)
if headerCallback != nil:
try:
headerCallback(Json.encode(forkyHeader), 0)
headerCallback(cstring(Json.encode(forkyHeader)), 0)
except SerializationError as e:
notice "finalizedHeaderCallback exception"
@ -217,7 +217,7 @@ proc run*(
optimisticProcessor.setOptimisticHeader(forkyHeader.beacon)
if headerCallback != nil:
try:
headerCallback(Json.encode(forkyHeader), 1)
headerCallback(cstring(Json.encode(forkyHeader)), 1)
except SerializationError as e:
notice "optimisticHeaderCallback exception"

View File

@ -9,7 +9,6 @@
import
std/typetraits,
chronicles, # Added for generic sandwich that hits in core_db :(
eth/common/eth_types as etypes,
eth/[trie, rlp],
stint,