Search in sources :

Example 1 with REOutput

use of com.radixdlt.statecomputer.REOutput in project radixdlt by radixdlt.

the class InMemorySystemInfoTest method createLedgerUpdate.

private LedgerUpdate createLedgerUpdate(BFTNode self) {
    var events = List.<REEvent>of(new ValidatorBFTDataEvent(self.getKey(), 10, 1));
    var txn = new REProcessedTxn(null, null, null, events);
    var output = ImmutableClassToInstanceMap.<Object, REOutput>of(REOutput.class, REOutput.create(List.of(txn)));
    return new LedgerUpdate(mock(VerifiedTxnsAndProof.class), output);
}
Also used : REOutput(com.radixdlt.statecomputer.REOutput) LedgerUpdate(com.radixdlt.ledger.LedgerUpdate) VerifiedTxnsAndProof(com.radixdlt.ledger.VerifiedTxnsAndProof) REEvent(com.radixdlt.constraintmachine.REEvent) ValidatorBFTDataEvent(com.radixdlt.constraintmachine.REEvent.ValidatorBFTDataEvent) REProcessedTxn(com.radixdlt.constraintmachine.REProcessedTxn)

Aggregations

REEvent (com.radixdlt.constraintmachine.REEvent)1 ValidatorBFTDataEvent (com.radixdlt.constraintmachine.REEvent.ValidatorBFTDataEvent)1 REProcessedTxn (com.radixdlt.constraintmachine.REProcessedTxn)1 LedgerUpdate (com.radixdlt.ledger.LedgerUpdate)1 VerifiedTxnsAndProof (com.radixdlt.ledger.VerifiedTxnsAndProof)1 REOutput (com.radixdlt.statecomputer.REOutput)1