Add unstable annotation to the BlockchainService (#5252)

Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
pull/5253/head
Gabriel-Trintinalia 2 years ago committed by GitHub
parent c4034f502e
commit 41bd878828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      besu/src/main/java/org/hyperledger/besu/services/BlockchainServiceImpl.java
  2. 2
      plugin-api/build.gradle
  3. 2
      plugin-api/src/main/java/org/hyperledger/besu/plugin/services/BlockchainService.java

@ -17,6 +17,7 @@ package org.hyperledger.besu.services;
import org.hyperledger.besu.ethereum.chain.Blockchain;
import org.hyperledger.besu.ethereum.core.BlockBody;
import org.hyperledger.besu.plugin.Unstable;
import org.hyperledger.besu.plugin.data.BlockContext;
import org.hyperledger.besu.plugin.data.BlockHeader;
import org.hyperledger.besu.plugin.services.BlockchainService;
@ -25,6 +26,7 @@ import java.util.Optional;
import java.util.function.Supplier;
/** The Blockchain service implementation. */
@Unstable
public class BlockchainServiceImpl implements BlockchainService {
private final Blockchain blockchain;

@ -67,7 +67,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 = 'VFMEmmE/7EyfKVpNhcK7KxMn0s5muPP4lorhW5iTuxo='
knownHash = 'vFAmK8jMtMc9nJaoeyPn76jDPFbwnogqQTVAOg3TSP4='
}
check.dependsOn('checkAPIChanges')

@ -14,11 +14,13 @@
*/
package org.hyperledger.besu.plugin.services;
import org.hyperledger.besu.plugin.Unstable;
import org.hyperledger.besu.plugin.data.BlockContext;
import java.util.Optional;
/** A service that plugins can use to query blocks by number */
@Unstable
public interface BlockchainService extends BesuService {
/**
* Gets block by number

Loading…
Cancel
Save