/** Adds a Blockchain ReorganizeListener. * @param rl ReorganizeListener to add. */ public void addReorganizeListener(ReorganizeListener rl) { reorganizeListeners.add(rl); wak.chain().addReorganizeListener(rl); }
/** Removes a Blockchain ReorganizeListener. * @param rl ReorganizeListener to remove. */ public void removeReorganizeListener(ReorganizeListener rl) { reorganizeListeners.remove(rl); wak.chain().removeReorganizeListener(rl); }
/** Removes all Blockchain ReorganizeListener(s). */ public void removeAllReorganizeListener() { for(ReorganizeListener rl : reorganizeListeners) wak.chain().removeReorganizeListener(rl); reorganizeListeners.clear(); }