Search in sources :

Example 1 with RandomHasher

use of com.radixdlt.utils.RandomHasher in project radixdlt by radixdlt.

the class PendingVotesTest method setup.

@Before
public void setup() {
    this.hasher = new RandomHasher();
    this.pendingVotes = new PendingVotes(hasher);
}
Also used : RandomHasher(com.radixdlt.utils.RandomHasher) Before(org.junit.Before)

Example 2 with RandomHasher

use of com.radixdlt.utils.RandomHasher in project radixdlt by radixdlt.

the class MessageCentralValidatorSyncTest method setUp.

@Before
public void setUp() {
    this.self = mock(BFTNode.class);
    ECPublicKey pubKey = mock(ECPublicKey.class);
    when(self.getKey()).thenReturn(pubKey);
    this.messageCentral = MessageCentralMockProvider.get();
    this.hasher = new RandomHasher();
    this.sync = new MessageCentralValidatorSync(messageCentral, hasher);
}
Also used : BFTNode(com.radixdlt.hotstuff.bft.BFTNode) RandomHasher(com.radixdlt.utils.RandomHasher) ECPublicKey(com.radixdlt.crypto.ECPublicKey) Before(org.junit.Before)

Example 3 with RandomHasher

use of com.radixdlt.utils.RandomHasher in project radixdlt by radixdlt.

the class PendingVotesTest method setup.

@Before
public void setup() {
    this.hasher = new RandomHasher();
    this.pendingVotes = new PendingVotes(hasher);
}
Also used : RandomHasher(com.radixdlt.utils.RandomHasher) Before(org.junit.Before)

Aggregations

RandomHasher (com.radixdlt.utils.RandomHasher)3 Before (org.junit.Before)3 ECPublicKey (com.radixdlt.crypto.ECPublicKey)1 BFTNode (com.radixdlt.hotstuff.bft.BFTNode)1