mirror of
https://github.com/vacp2p/linea-besu.git
synced 2026-01-09 15:37:54 -05:00
revert to unchanged plugin interface signature (#7938)
Signed-off-by: jflo <justin+github@florentine.us>
This commit is contained in:
committed by
GitHub
parent
eb097ffbd4
commit
f08147acef
@@ -16,8 +16,8 @@ package org.hyperledger.besu.tests.acceptance.plugins;
|
||||
|
||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
|
||||
import org.hyperledger.besu.plugin.BesuContext;
|
||||
import org.hyperledger.besu.plugin.BesuPlugin;
|
||||
import org.hyperledger.besu.plugin.ServiceManager;
|
||||
import org.hyperledger.besu.plugin.services.PicoCLIOptions;
|
||||
|
||||
import java.io.File;
|
||||
@@ -39,7 +39,8 @@ public class BadCLIOptionsPlugin implements BesuPlugin {
|
||||
private File callbackDir;
|
||||
|
||||
@Override
|
||||
public void register(final ServiceManager context) {
|
||||
@SuppressWarnings("removal")
|
||||
public void register(final BesuContext context) {
|
||||
LOG.info("Registering BadCliOptionsPlugin");
|
||||
callbackDir = new File(System.getProperty("besu.plugins.dir", "plugins"));
|
||||
writeStatus("init");
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
*/
|
||||
package org.hyperledger.besu.tests.acceptance.plugins;
|
||||
|
||||
import org.hyperledger.besu.plugin.BesuContext;
|
||||
import org.hyperledger.besu.plugin.BesuPlugin;
|
||||
import org.hyperledger.besu.plugin.ServiceManager;
|
||||
import org.hyperledger.besu.plugin.data.BlockHeader;
|
||||
@@ -42,7 +43,8 @@ public class TestBesuEventsPlugin implements BesuPlugin {
|
||||
private File callbackDir;
|
||||
|
||||
@Override
|
||||
public void register(final ServiceManager context) {
|
||||
@SuppressWarnings("removal")
|
||||
public void register(final BesuContext context) {
|
||||
this.context = context;
|
||||
LOG.info("Registered");
|
||||
callbackDir = new File(System.getProperty("besu.plugins.dir", "plugins"));
|
||||
|
||||
@@ -17,8 +17,8 @@ package org.hyperledger.besu.tests.acceptance.plugins;
|
||||
import org.hyperledger.besu.datatypes.Hash;
|
||||
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.response.RpcErrorType;
|
||||
import org.hyperledger.besu.plugin.BesuContext;
|
||||
import org.hyperledger.besu.plugin.BesuPlugin;
|
||||
import org.hyperledger.besu.plugin.ServiceManager;
|
||||
import org.hyperledger.besu.plugin.data.BlockContext;
|
||||
import org.hyperledger.besu.plugin.services.BlockchainService;
|
||||
import org.hyperledger.besu.plugin.services.RpcEndpointService;
|
||||
@@ -40,7 +40,8 @@ public class TestBlockchainServiceFinalizedPlugin implements BesuPlugin {
|
||||
private static final String RPC_METHOD_SAFE_BLOCK = "updateSafeBlockV1";
|
||||
|
||||
@Override
|
||||
public void register(final ServiceManager serviceManager) {
|
||||
@SuppressWarnings("removal")
|
||||
public void register(final BesuContext serviceManager) {
|
||||
LOG.trace("Registering plugin ...");
|
||||
|
||||
final RpcEndpointService rpcEndpointService =
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
package org.hyperledger.besu.tests.acceptance.plugins;
|
||||
|
||||
import org.hyperledger.besu.datatypes.Wei;
|
||||
import org.hyperledger.besu.plugin.BesuContext;
|
||||
import org.hyperledger.besu.plugin.BesuPlugin;
|
||||
import org.hyperledger.besu.plugin.ServiceManager;
|
||||
import org.hyperledger.besu.plugin.services.PicoCLIOptions;
|
||||
import org.hyperledger.besu.plugin.services.RpcEndpointService;
|
||||
import org.hyperledger.besu.plugin.services.rpc.RpcResponseType;
|
||||
@@ -36,7 +36,8 @@ public class TestInProcessRpcServicePlugin implements BesuPlugin {
|
||||
long minGasPrice = -1;
|
||||
|
||||
@Override
|
||||
public void register(final ServiceManager context) {
|
||||
@SuppressWarnings("removal")
|
||||
public void register(final BesuContext context) {
|
||||
final PicoCLIOptions cmdlineOptions =
|
||||
context
|
||||
.getService(PicoCLIOptions.class)
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
*/
|
||||
package org.hyperledger.besu.tests.acceptance.plugins;
|
||||
|
||||
import org.hyperledger.besu.plugin.BesuContext;
|
||||
import org.hyperledger.besu.plugin.BesuPlugin;
|
||||
import org.hyperledger.besu.plugin.ServiceManager;
|
||||
import org.hyperledger.besu.plugin.services.MetricsSystem;
|
||||
@@ -33,7 +34,8 @@ public class TestMetricsPlugin implements BesuPlugin {
|
||||
private ServiceManager serviceManager;
|
||||
|
||||
@Override
|
||||
public void register(final ServiceManager context) {
|
||||
@SuppressWarnings("removal")
|
||||
public void register(final BesuContext context) {
|
||||
LOG.info("Registering TestMetricsPlugin");
|
||||
serviceManager = context;
|
||||
context
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
*/
|
||||
package org.hyperledger.besu.tests.acceptance.plugins;
|
||||
|
||||
import org.hyperledger.besu.plugin.BesuContext;
|
||||
import org.hyperledger.besu.plugin.BesuPlugin;
|
||||
import org.hyperledger.besu.plugin.ServiceManager;
|
||||
import org.hyperledger.besu.plugin.services.PermissioningService;
|
||||
import org.hyperledger.besu.plugin.services.PicoCLIOptions;
|
||||
|
||||
@@ -40,7 +40,8 @@ public class TestPermissioningPlugin implements BesuPlugin {
|
||||
PermissioningService service;
|
||||
|
||||
@Override
|
||||
public void register(final ServiceManager context) {
|
||||
@SuppressWarnings("removal")
|
||||
public void register(final BesuContext context) {
|
||||
context.getService(PicoCLIOptions.class).orElseThrow().addPicoCLIOptions("permissioning", this);
|
||||
service = context.getService(PermissioningService.class).orElseThrow();
|
||||
}
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
*/
|
||||
package org.hyperledger.besu.tests.acceptance.plugins;
|
||||
|
||||
import org.hyperledger.besu.plugin.BesuContext;
|
||||
import org.hyperledger.besu.plugin.BesuPlugin;
|
||||
import org.hyperledger.besu.plugin.ServiceManager;
|
||||
import org.hyperledger.besu.plugin.services.PicoCLIOptions;
|
||||
|
||||
import java.io.File;
|
||||
@@ -57,7 +57,8 @@ public class TestPicoCLIPlugin implements BesuPlugin {
|
||||
private File callbackDir;
|
||||
|
||||
@Override
|
||||
public void register(final ServiceManager context) {
|
||||
@SuppressWarnings("removal")
|
||||
public void register(final BesuContext context) {
|
||||
LOG.info("Registering. Test Option is '{}'", testOption);
|
||||
state = "registering";
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
*/
|
||||
package org.hyperledger.besu.tests.acceptance.plugins;
|
||||
|
||||
import org.hyperledger.besu.plugin.BesuContext;
|
||||
import org.hyperledger.besu.plugin.BesuPlugin;
|
||||
import org.hyperledger.besu.plugin.ServiceManager;
|
||||
import org.hyperledger.besu.plugin.services.PicoCLIOptions;
|
||||
@@ -40,7 +41,8 @@ public class TestPrivacyServicePlugin implements BesuPlugin {
|
||||
new TestSigningPrivateMarkerTransactionFactory();
|
||||
|
||||
@Override
|
||||
public void register(final ServiceManager context) {
|
||||
@SuppressWarnings("removal")
|
||||
public void register(final BesuContext context) {
|
||||
this.context = context;
|
||||
|
||||
context
|
||||
|
||||
@@ -16,8 +16,8 @@ package org.hyperledger.besu.tests.acceptance.plugins;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkArgument;
|
||||
|
||||
import org.hyperledger.besu.plugin.BesuContext;
|
||||
import org.hyperledger.besu.plugin.BesuPlugin;
|
||||
import org.hyperledger.besu.plugin.ServiceManager;
|
||||
import org.hyperledger.besu.plugin.services.RpcEndpointService;
|
||||
import org.hyperledger.besu.plugin.services.rpc.PluginRpcRequest;
|
||||
|
||||
@@ -51,7 +51,8 @@ public class TestRpcEndpointServicePlugin implements BesuPlugin {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void register(final ServiceManager context) {
|
||||
@SuppressWarnings("removal")
|
||||
public void register(final BesuContext context) {
|
||||
context
|
||||
.getService(RpcEndpointService.class)
|
||||
.ifPresent(
|
||||
|
||||
Reference in New Issue
Block a user