Skip to content

Commit e4acad9

Browse files
committed
fix: test
1 parent 5dc241d commit e4acad9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/test_block_processor.nim

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import
1818
../beacon_chain/gossip_processing/block_processor,
1919
../beacon_chain/consensus_object_pools/[
2020
attestation_pool, blockchain_dag, blob_quarantine, block_quarantine,
21-
block_clearance, consensus_manager,
21+
block_clearance, consensus_manager, envelope_quarantine,
2222
],
2323
../beacon_chain/el/el_manager,
2424
./[testblockutil, testdbutil, testutil]
@@ -53,6 +53,7 @@ suite "Block processor" & preset():
5353
quarantine = newClone(Quarantine.init(cfg))
5454
blobQuarantine = newClone(BlobQuarantine())
5555
dataColumnQuarantine = newClone(ColumnQuarantine())
56+
envelopeQuarantine = newClone(EnvelopeQuarantine())
5657
attestationPool = newClone(AttestationPool.init(dag, quarantine))
5758
elManager = new ELManager # TODO: initialise this properly
5859
actionTracker = default(ActionTracker)
@@ -83,7 +84,7 @@ suite "Block processor" & preset():
8384
let
8485
processor = BlockProcessor.new(
8586
false, "", "", batchVerifier, consensusManager, validatorMonitor,
86-
blobQuarantine, dataColumnQuarantine, getTimeFn,
87+
blobQuarantine, dataColumnQuarantine, envelopeQuarantine, getTimeFn,
8788
)
8889
b1 = addTestBlock(state[], cache, cfg = cfg).bellatrixData
8990
b2 = addTestBlock(state[], cache, cfg = cfg).bellatrixData
@@ -145,7 +146,7 @@ suite "Block processor" & preset():
145146
processor = BlockProcessor.new(
146147
false, "", "", batchVerifier, consensusManager,
147148
validatorMonitor, blobQuarantine, dataColumnQuarantine,
148-
getTimeFn, invalidBlockRoots = @[b2.root])
149+
envelopeQuarantine, getTimeFn, invalidBlockRoots = @[b2.root])
149150

150151
block:
151152
let res = await processor.addBlock(MsgSource.gossip, b2, noSidecars)
@@ -175,8 +176,8 @@ suite "Block processor" & preset():
175176

176177
asyncTest "Process a block from each fork (without blobs)" & preset():
177178
let processor = BlockProcessor.new(
178-
false, "", "", batchVerifier, consensusManager, validatorMonitor, blobQuarantine,
179-
dataColumnQuarantine, getTimeFn,
179+
false, "", "", batchVerifier, consensusManager, validatorMonitor,
180+
blobQuarantine, dataColumnQuarantine, envelopeQuarantine, getTimeFn,
180181
)
181182

182183
debugGloasComment "TODO testing"

0 commit comments

Comments
 (0)