diff --git a/crates/test/mock-consensus/src/block.rs b/crates/test/mock-consensus/src/block.rs index 363372fac6..dafa729f62 100644 --- a/crates/test/mock-consensus/src/block.rs +++ b/crates/test/mock-consensus/src/block.rs @@ -49,6 +49,12 @@ impl<'e, C> Builder<'e, C> { Self { data, ..self } } + /// Appends the given tx to this block's data. + pub fn add_tx(mut self, tx: Vec) -> Self { + self.data.push(tx); + self + } + /// Sets the evidence [`List`][evidence::List] for this block. pub fn with_evidence(self, evidence: evidence::List) -> Self { Self { evidence, ..self }