Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
Expose the Ibft MiningCoordinator (#916)
Browse files Browse the repository at this point in the history
  • Loading branch information
jframe authored and rain-on committed Feb 19, 2019
1 parent 4668c3b commit 920d8ec
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public class IbftPantheonController implements PantheonController<IbftContext> {
private final IbftProtocolManager ibftProtocolManager;
private final KeyPair keyPair;
private final TransactionPool transactionPool;
private MiningCoordinator ibftMiningCoordinator;
private final Runnable closer;

IbftPantheonController(
Expand All @@ -105,8 +106,8 @@ public class IbftPantheonController implements PantheonController<IbftContext> {
final Synchronizer synchronizer,
final KeyPair keyPair,
final TransactionPool transactionPool,
final MiningCoordinator ibftMiningCoordinator,
final Runnable closer) {

this.protocolSchedule = protocolSchedule;
this.context = context;
this.ethSubProtocol = ethSubProtocol;
Expand All @@ -115,6 +116,7 @@ public class IbftPantheonController implements PantheonController<IbftContext> {
this.synchronizer = synchronizer;
this.keyPair = keyPair;
this.transactionPool = transactionPool;
this.ibftMiningCoordinator = ibftMiningCoordinator;
this.closer = closer;
}

Expand Down Expand Up @@ -284,6 +286,7 @@ public static PantheonController<IbftContext> init(
synchronizer,
nodeKeys,
transactionPool,
ibftMiningCoordinator,
closer);
}

Expand Down Expand Up @@ -321,7 +324,7 @@ public TransactionPool getTransactionPool() {

@Override
public MiningCoordinator getMiningCoordinator() {
return null;
return ibftMiningCoordinator;
}

@Override
Expand Down

0 comments on commit 920d8ec

Please sign in to comment.