Run everything fluffy with chronosStrictException (#889)

This commit is contained in:
Kim De Mey 2021-11-18 17:52:44 +01:00 committed by GitHub
parent 78f585399f
commit 02afda1b45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 6 deletions

View File

@ -52,10 +52,12 @@ task nimbus, "Build Nimbus":
buildBinary "nimbus", "nimbus/", "-d:chronicles_log_level=TRACE"
task fluffy, "Build fluffy":
buildBinary "fluffy", "fluffy/", "-d:chronicles_log_level=TRACE"
buildBinary "fluffy", "fluffy/", "-d:chronicles_log_level=TRACE -d:chronosStrictException"
task portalcli, "Build portalcli":
buildBinary "portalcli", "fluffy/tools/", "-d:chronicles_log_level=TRACE"
buildBinary "portalcli", "fluffy/tools/", "-d:chronicles_log_level=TRACE -d:chronosStrictException"
task testfluffy, "Run fluffy tests":
test "fluffy/tests", "all_fluffy_tests", "-d:chronicles_log_level=ERROR -d:nimbus_db_backend=sqlite"
# Need the nimbus_db_backend in state network tests as we need a Hexary to
# start from, even though it only uses the MemoryDb.
test "fluffy/tests", "all_fluffy_tests", "-d:chronicles_log_level=ERROR -d:chronosStrictException -d:nimbus_db_backend=sqlite"

View File

@ -159,7 +159,8 @@ template to(a: string, b: type UInt256): UInt256 =
# json_serialization decode table stuff
UInt256.fromHex(a)
proc loadNetworkParams*(fileName: string, cg: var NetworkParams): bool =
proc loadNetworkParams*(fileName: string, cg: var NetworkParams):
bool {.raises: [Defect].} =
var cc: CustomChain
try:
cc = Json.loadFile(fileName, CustomChain, allowUnknownFields = true)

View File

@ -5,7 +5,8 @@ import
./db/[db_chain, state_db],
"."/[constants, chain_config, forks, p2p/gaslimit]
proc toBlock*(g: Genesis, db: BaseChainDB = nil): BlockHeader =
proc toBlock*(g: Genesis, db: BaseChainDB = nil):
BlockHeader {.raises: [Defect, RlpError].} =
let (tdb, pruneTrie) = if db.isNil: (newMemoryDB(), true)
else: (db.db, db.pruneTrie)
tdb.put(emptyRlpHash.data, emptyRlp)

@ -1 +1 @@
Subproject commit 297496d703a43cbbe00323abe7f0b7f8e320ff33
Subproject commit c5f0e2465e8375dfc7aa0f56ccef67cb680bc6b0