2023-09-15 10:36:35 +00:00
|
|
|
|
using Core;
|
|
|
|
|
|
|
|
|
|
namespace GethPlugin
|
|
|
|
|
{
|
|
|
|
|
public static class CoreInterfaceExtensions
|
|
|
|
|
{
|
2023-09-15 13:52:02 +00:00
|
|
|
|
public static IGethNodeInfo StartGethNode(this CoreInterface ci, Action<IGethSetup> setup)
|
|
|
|
|
{
|
|
|
|
|
return Plugin(ci).StartGeth(setup);
|
|
|
|
|
}
|
2023-09-15 10:36:35 +00:00
|
|
|
|
|
2023-09-15 13:52:02 +00:00
|
|
|
|
private static GethPlugin Plugin(CoreInterface ci)
|
|
|
|
|
{
|
|
|
|
|
return ci.GetPlugin<GethPlugin>();
|
|
|
|
|
}
|
2023-09-15 10:36:35 +00:00
|
|
|
|
}
|
|
|
|
|
}
|