Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
v2.9.1 (#245)
Browse files Browse the repository at this point in the history
* update dependency: Neo v2.9.1

* bindAddress (#233)

* IsStandard to Script.IsStandardContract()

minor update on IsStandardContract checking if contract is IsSignatureContract() or IsMultiSigContract()
  • Loading branch information
erikzhang authored Oct 18, 2018
1 parent 789d83d commit 2c2d316
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion neo-cli/Settings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.Extensions.Configuration;
using System.Net;
using Microsoft.Extensions.Configuration;
using Neo.Network.P2P;

namespace Neo
Expand Down Expand Up @@ -53,12 +54,14 @@ public P2PSettings(IConfigurationSection section)

internal class RPCSettings
{
public IPAddress BindAddress { get; }
public ushort Port { get; }
public string SslCert { get; }
public string SslCertPassword { get; }

public RPCSettings(IConfigurationSection section)
{
this.BindAddress = IPAddress.Parse(section.GetSection("BindAddress").Value);
this.Port = ushort.Parse(section.GetSection("Port").Value);
this.SslCert = section.GetSection("SslCert").Value;
this.SslCertPassword = section.GetSection("SslCertPassword").Value;
Expand Down
5 changes: 3 additions & 2 deletions neo-cli/Shell/MainService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ private bool OnListAddressCommand(string[] args)
if (NoWallet()) return true;
foreach (Contract contract in Program.Wallet.GetAccounts().Where(p => !p.WatchOnly).Select(p => p.Contract))
{
Console.WriteLine($"{contract.Address}\t{(contract.IsStandard ? "Standard" : "Nonstandard")}");
Console.WriteLine($"{contract.Address}\t{(contract.Script.IsStandardContract() ? "Standard" : "Nonstandard")}");
}
return true;
}
Expand Down Expand Up @@ -859,7 +859,8 @@ protected internal override void OnStart(string[] args)
}
if (useRPC)
{
system.StartRpc(Settings.Default.RPC.Port,
system.StartRpc(Settings.Default.RPC.BindAddress,
Settings.Default.RPC.Port,
wallet: Program.Wallet,
sslCert: Settings.Default.RPC.SslCert,
password: Settings.Default.RPC.SslCertPassword);
Expand Down
1 change: 1 addition & 0 deletions neo-cli/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"WsPort": 10334
},
"RPC": {
"BindAddress": "127.0.0.1",
"Port": 10332,
"SslCert": "",
"SslCertPassword": ""
Expand Down
4 changes: 2 additions & 2 deletions neo-cli/neo-cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Copyright>2016-2018 The Neo Project</Copyright>
<AssemblyTitle>Neo.CLI</AssemblyTitle>
<Version>2.9.0</Version>
<Version>2.9.1</Version>
<Authors>The Neo Project</Authors>
<TargetFramework>netcoreapp2.0</TargetFramework>
<AssemblyName>neo-cli</AssemblyName>
Expand All @@ -28,7 +28,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Neo" Version="2.9.0" />
<PackageReference Include="Neo" Version="2.9.1" />
</ItemGroup>

</Project>

0 comments on commit 2c2d316

Please sign in to comment.