Skip to content

Commit

Permalink
Fixes ImportBlocks for Neo 2.10.1 (neo-project#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang authored and 陈志同 committed Oct 13, 2020
1 parent 5b23cd8 commit e9e87a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions ImportBlocks/ImportBlocks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ namespace Neo.Plugins
{
public class ImportBlocks : Plugin
{
public ImportBlocks()
{
OnImport();
}

private static bool CheckMaxOnImportHeight(uint currentImportBlockHeight)
{
if (Settings.Default.MaxOnImportHeight == 0 || Settings.Default.MaxOnImportHeight >= currentImportBlockHeight)
Expand Down Expand Up @@ -138,7 +133,7 @@ private bool OnHelp(string[] args)
return true;
}

private async void OnImport()
protected override async void OnPluginsLoaded()
{
SuspendNodeStartup();
const string path_acc = "chain.acc";
Expand Down
4 changes: 2 additions & 2 deletions ImportBlocks/ImportBlocks.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>2.10.0</Version>
<Version>2.10.1</Version>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>Neo.Plugins</RootNamespace>
</PropertyGroup>
Expand All @@ -14,7 +14,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Neo" Version="2.10.0" />
<PackageReference Include="Neo" Version="2.10.1" />
</ItemGroup>

</Project>

0 comments on commit e9e87a3

Please sign in to comment.