Search in sources :

Example 1 with PrepareMessageData

use of org.hyperledger.besu.consensus.qbft.messagedata.PrepareMessageData in project besu by hyperledger.

the class QbftMessageTransmitter method multicastPrepare.

public void multicastPrepare(final ConsensusRoundIdentifier roundIdentifier, final Hash digest) {
    try {
        final Prepare data = messageFactory.createPrepare(roundIdentifier, digest);
        final PrepareMessageData message = PrepareMessageData.create(data);
        multicaster.send(message);
    } catch (final SecurityModuleException e) {
        LOG.warn("Failed to generate signature for Prepare (not sent): {} ", e.getMessage());
    }
}
Also used : SecurityModuleException(org.hyperledger.besu.plugin.services.securitymodule.SecurityModuleException) Prepare(org.hyperledger.besu.consensus.qbft.messagewrappers.Prepare) PrepareMessageData(org.hyperledger.besu.consensus.qbft.messagedata.PrepareMessageData)

Aggregations

PrepareMessageData (org.hyperledger.besu.consensus.qbft.messagedata.PrepareMessageData)1 Prepare (org.hyperledger.besu.consensus.qbft.messagewrappers.Prepare)1 SecurityModuleException (org.hyperledger.besu.plugin.services.securitymodule.SecurityModuleException)1