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

Expose the Ibft MiningCoordinator #916

Merged
merged 3 commits into from
Feb 19, 2019
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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