Don't start the BFT mining coordinator when it is created, just enable it (#6675)

* Don't start a BFT mining coordinator when it is created, just enable it

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Update change log

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

---------

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
Signed-off-by: Matt Whitehead <matthew.whitehead@kaleido.io>
pull/6698/head
Matt Whitehead 8 months ago committed by GitHub
parent 65f8880fb7
commit 8dba298108
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 4
      besu/src/main/java/org/hyperledger/besu/controller/IbftBesuControllerBuilder.java
  3. 4
      besu/src/main/java/org/hyperledger/besu/controller/QbftBesuControllerBuilder.java

@ -25,6 +25,7 @@
### Bug fixes
- Make block transaction selection max time aware of PoA transitions [#6676](https://github.com/hyperledger/besu/pull/6676)
- Don't enable the BFT mining coordinator when running sub commands such as `blocks export` [#6675](https://github.com/hyperledger/besu/pull/6675)
### Download Links

@ -246,11 +246,7 @@ public class IbftBesuControllerBuilder extends BftBesuControllerBuilder {
.getBlockPeriodSeconds()));
if (syncState.isInitialSyncPhaseDone()) {
LOG.info("Starting IBFT mining coordinator");
ibftMiningCoordinator.enable();
ibftMiningCoordinator.start();
} else {
LOG.info("IBFT mining coordinator not starting while initial sync in progress");
}
syncState.subscribeCompletionReached(

@ -286,11 +286,7 @@ public class QbftBesuControllerBuilder extends BftBesuControllerBuilder {
.getBlockPeriodSeconds()));
if (syncState.isInitialSyncPhaseDone()) {
LOG.info("Starting QBFT mining coordinator");
miningCoordinator.enable();
miningCoordinator.start();
} else {
LOG.info("QBFT mining coordinator not starting while initial sync in progress");
}
syncState.subscribeCompletionReached(

Loading…
Cancel
Save