Skip to content
This repository was archived by the owner on Feb 1, 2020. It is now read-only.

Commit 7b7003c

Browse files
committed
Update NEO 3x changes
1 parent bd08902 commit 7b7003c

File tree

13 files changed

+51
-49
lines changed

13 files changed

+51
-49
lines changed

src/NeoStats/NeoStats.csproj

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<PropertyGroup>
4-
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp2.2</TargetFramework>
6-
</PropertyGroup>
7-
8-
<ItemGroup>
9-
<ProjectReference Include="..\NeoStatsPlugin\NeoStatsPlugin.csproj" />
10-
</ItemGroup>
11-
12-
<ItemGroup>
13-
<None Update="sample.json">
14-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
15-
</None>
16-
</ItemGroup>
17-
18-
</Project>
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>netcoreapp3.1</TargetFramework>
6+
<StartupObject>NeoStats.Program</StartupObject>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<ProjectReference Include="..\NeoStatsPlugin\NeoStatsPlugin.csproj" />
11+
</ItemGroup>
12+
13+
<ItemGroup>
14+
<None Update="sample.json">
15+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
16+
</None>
17+
</ItemGroup>
18+
19+
</Project>

src/NeoStatsPlugin/Core/BlockStatCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ public static BlockStatCollection FromBlockArray(string json)
9191
/// <returns></returns>
9292
public override string ToString() => this.ToJson();
9393
}
94-
}
94+
}

src/NeoStatsPlugin/Core/ConsensusPhaseCount.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ public class ConsensusPhaseCount
3636
/// <returns></returns>
3737
public override string ToString() => this.ToJson();
3838
}
39-
}
39+
}

src/NeoStatsPlugin/Core/ConsensusPhaseStat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ public void Add(ConsensusPayload payload)
5353
}
5454
}
5555
}
56-
}
56+
}

src/NeoStatsPlugin/Core/MemPoolStat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ public class MemPoolStat
3030
/// <returns></returns>
3131
public override string ToString() => this.ToJson();
3232
}
33-
}
33+
}

src/NeoStatsPlugin/Core/MessageStat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ public class MessageStat
1212
/// </summary>
1313
public long MessageCount { get; set; } = 0;
1414
}
15-
}
15+
}

src/NeoStatsPlugin/Core/P2PStat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ public class P2PStat
77
/// </summary>
88
public MessageStat Received { get; } = new MessageStat();
99
}
10-
}
10+
}

src/NeoStatsPlugin/Core/TransactionStat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ public class TransactionStat
2525
/// <returns></returns>
2626
public override string ToString() => this.ToJson();
2727
}
28-
}
28+
}

src/NeoStatsPlugin/Extensions/JsonExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ static JsonExtensions()
2323
/// </summary>
2424
public static string ToJson(this object obj) => JsonConvert.SerializeObject(obj, _settings);
2525
}
26-
}
26+
}

src/NeoStatsPlugin/Extensions/NeoExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.IO;
44
using System.Linq;
55
using System.Security.Cryptography;
6+
using Neo.IO;
67
using Neo.IO.Caching;
78
using Neo.Ledger;
89
using Neo.Network.P2P.Payloads;

0 commit comments

Comments
 (0)