Interface BesuEvents.BlockPropagatedListener
- Enclosing interface:
BesuEvents
public static interface BesuEvents.BlockPropagatedListener
The listener interface for receiving new block propagated events.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonBlockPropagated(org.hyperledger.besu.plugin.data.PropagatedBlockContext propagatedBlockContext) Invoked when a new block header has been received and validated and is about to be sent out to other peers, but before the body of the block has been evaluated and validated.
-
Method Details
-
onBlockPropagated
void onBlockPropagated(org.hyperledger.besu.plugin.data.PropagatedBlockContext propagatedBlockContext) Invoked when a new block header has been received and validated and is about to be sent out to other peers, but before the body of the block has been evaluated and validated.The block may not have been imported to the local chain yet and may fail later validations.
- Parameters:
propagatedBlockContext- block being propagated.
-