Search in sources :

Example 1 with EventMiner

use of org.aion.evtmgr.impl.evt.EventMiner in project aion by aionnetwork.

the class EquihashMiner method registerMinerEvents.

/**
 * Register miner events.
 */
public void registerMinerEvents() {
    List<IEvent> evts = new ArrayList<>();
    evts.add(new EventMiner(EventMiner.CALLBACK.MININGSTARTED));
    evts.add(new EventMiner(EventMiner.CALLBACK.MININGSTOPPED));
    this.evtMgr.registerEvent(evts);
}
Also used : IEvent(org.aion.evtmgr.IEvent) EventMiner(org.aion.evtmgr.impl.evt.EventMiner)

Aggregations

IEvent (org.aion.evtmgr.IEvent)1 EventMiner (org.aion.evtmgr.impl.evt.EventMiner)1