We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84edd5f commit 7241fdfCopy full SHA for 7241fdf
sim-rs/sim-core/src/model.rs
@@ -214,6 +214,7 @@ pub enum NoVoteReason {
214
ExtraIB,
215
MissingIB,
216
MissingEB,
217
+ ExtraTX,
218
UncertifiedEBReference,
219
}
220
sim-rs/sim-core/src/sim/node.rs
@@ -1462,6 +1462,12 @@ impl Node {
1462
let expected_ib_pipelines: HashSet<u64> =
1463
self.pipelines_for_ib_references(eb.pipeline).collect();
1464
1465
+ for tx in &eb.txs {
1466
+ if !matches!(self.txs.get(tx), Some(TransactionView::Received(_))) {
1467
+ return Err(NoVoteReason::ExtraTX);
1468
+ }
1469
1470
+
1471
for ib in &eb.ibs {
1472
if !matches!(self.leios.ibs.get(ib), Some(InputBlockState::Received(_))) {
1473
return Err(NoVoteReason::MissingIB);
0 commit comments