pub struct FaultTolerantTxCertBuilder {
builder: TestTxCertBuilder,
valid_until: BlockDate,
cert: Certificate,
funder: Wallet,
}
Expand description
this struct can create any transaction including not valid one in order to test robustness of ledger
Fields§
§builder: TestTxCertBuilder
§valid_until: BlockDate
§cert: Certificate
§funder: Wallet
Implementations§
source§impl FaultTolerantTxCertBuilder
impl FaultTolerantTxCertBuilder
pub fn new( block0_hash: HeaderId, fee: LinearFee, cert: Certificate, valid_until: BlockDate, funder: Wallet ) -> Self
pub fn transaction_no_witness(&self) -> Fragment
pub fn transaction_input_to_low(&self) -> Fragment
pub fn transaction_with_input_output(&self) -> Fragment
pub fn transaction_with_output_only(&self) -> Fragment
pub fn transaction_with_input_only(&self) -> Fragment
pub fn transaction_with_witness(&self) -> Fragment
Auto Trait Implementations§
impl RefUnwindSafe for FaultTolerantTxCertBuilder
impl Send for FaultTolerantTxCertBuilder
impl Sync for FaultTolerantTxCertBuilder
impl Unpin for FaultTolerantTxCertBuilder
impl UnwindSafe for FaultTolerantTxCertBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more