Search in sources :

Example 11 with Proposal

use of com.radixdlt.hotstuff.Proposal in project radixdlt by radixdlt.

the class DifferentTimestampsCauseTimeoutTest method mutateProposal.

private Proposal mutateProposal(Proposal p, int destination) {
    QuorumCertificate committedQC = p.highQC().highestCommittedQC();
    UnverifiedVertex vertex = p.getVertex();
    ECDSASignature signature = p.getSignature();
    return new Proposal(mutateVertex(vertex, destination), committedQC, signature, Optional.empty());
}
Also used : QuorumCertificate(com.radixdlt.hotstuff.QuorumCertificate) ECDSASignature(com.radixdlt.crypto.ECDSASignature) TimestampedECDSASignature(com.radixdlt.hotstuff.TimestampedECDSASignature) UnverifiedVertex(com.radixdlt.hotstuff.UnverifiedVertex) Proposal(com.radixdlt.hotstuff.Proposal)

Aggregations

Proposal (com.radixdlt.hotstuff.Proposal)11 ECDSASignature (com.radixdlt.crypto.ECDSASignature)5 BFTNode (com.radixdlt.hotstuff.bft.BFTNode)5 View (com.radixdlt.hotstuff.bft.View)4 Test (org.junit.Test)4 AbstractModule (com.google.inject.AbstractModule)2 TypeLiteral (com.google.inject.TypeLiteral)2 SystemCounters (com.radixdlt.counters.SystemCounters)2 EventDispatcher (com.radixdlt.environment.EventDispatcher)2 RemoteEventDispatcher (com.radixdlt.environment.RemoteEventDispatcher)2 ScheduledEventDispatcher (com.radixdlt.environment.ScheduledEventDispatcher)2 BFTConfiguration (com.radixdlt.hotstuff.BFTConfiguration)2 HashSigner (com.radixdlt.hotstuff.HashSigner)2 HighQC (com.radixdlt.hotstuff.HighQC)2 Vote (com.radixdlt.hotstuff.Vote)2 BFTCommittedUpdate (com.radixdlt.hotstuff.bft.BFTCommittedUpdate)2 BFTHighQCUpdate (com.radixdlt.hotstuff.bft.BFTHighQCUpdate)2 BFTInsertUpdate (com.radixdlt.hotstuff.bft.BFTInsertUpdate)2 BFTRebuildUpdate (com.radixdlt.hotstuff.bft.BFTRebuildUpdate)2 BFTValidatorSet (com.radixdlt.hotstuff.bft.BFTValidatorSet)2