fix api naming inconsistency (#1928)

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/2/head
Ratan Rai Sur 5 years ago committed by GitHub
parent 6c308439e9
commit d1b26adc80
  1. 2
      pantheon/src/main/java/tech/pegasys/pantheon/services/PantheonEventsImpl.java
  2. 2
      plugin-api/build.gradle
  3. 2
      plugin-api/src/main/java/tech/pegasys/pantheon/plugin/services/PantheonEvents.java

@ -34,7 +34,7 @@ public class PantheonEventsImpl implements PantheonEvents {
@Override
public long addBlockPropagatedListener(final BlockPropagatedListener listener) {
return blockBroadcaster.subscribePropagateNewBlocks(
block -> listener.newBlockPropagated(block.getHeader()));
block -> listener.onBlockPropagated(block.getHeader()));
}
@Override

@ -56,7 +56,7 @@ Calculated : ${currentHash}
tasks.register('checkAPIChanges', FileStateChecker) {
description = "Checks that the API for the Plugin-API project does not change without deliberate thought"
files = sourceSets.main.allJava.files
knownHash = '1VkUKHRqmT1ONtvrqRz0VNCA1uqSopK0RAnNdmCM6vc='
knownHash = 'xJ1uQYYa5Z4h7qIVsKMLsUFHAjj4FXAeyCtX6PY4z0g='
}
check.dependsOn('checkAPIChanges')

@ -109,7 +109,7 @@ public interface PantheonEvents {
*
* @param blockHeader the new block header.
*/
void newBlockPropagated(BlockHeader blockHeader);
void onBlockPropagated(BlockHeader blockHeader);
}
/** The listener interface for receiving new transaction added events. */

Loading…
Cancel
Save