diff --git a/CHANGELOG.md b/CHANGELOG.md index 413a2989a..696e1adba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,20 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +## [2.7.6] - 2018-06-19 +### Added +- New CLI command: `import multisigaddress`. +- New CLI commands: `sign` and `relay`. +- New RPC command: `getvalidators`. +- New smart contract APIs: `Neo.Enumerator.*`. +- New smart contract API: `System.Blockchain.GetTransactionHeight`. +- New smart contract API: `System.Storage.GetReadOnlyContext` and `Neo.StorageContext.AsReadOnly`. + +### Changed +- Support for NeoContract Standary Namespace. +- Improved Plugins System: filter transactions in plugin. +- Improve the speed of creating addresses. + ## [2.7.5] - 2018-05-18 ### Added - Importing/exporting blocks with sharding. diff --git a/neo-cli/Shell/MainService.cs b/neo-cli/Shell/MainService.cs index 478eac276..d944f4d6d 100644 --- a/neo-cli/Shell/MainService.cs +++ b/neo-cli/Shell/MainService.cs @@ -37,7 +37,7 @@ internal class MainService : ConsoleServiceBase protected override string Prompt => "neo"; public override string ServiceName => "NEO-CLI"; - private void ImportBlocks(Stream stream, bool read_start = false) + private void ImportBlocks(Stream stream, bool read_start = false) { LevelDBBlockchain blockchain = (LevelDBBlockchain)Blockchain.Default; using (BinaryReader r = new BinaryReader(stream)) @@ -514,7 +514,7 @@ private bool OnImportMultisigAddress(string[] args) if (m < 1 || m > n || n > 1024) { Console.WriteLine("Error. Invalid parameters."); - return true; + return true; } ECPoint[] publicKeys = args.Skip(3).Select(p => ECPoint.Parse(p, ECCurve.Secp256r1)).ToArray(); @@ -1094,10 +1094,10 @@ private void LevelDBBlockchain_ApplicationExecuted(object sender, ApplicationExe { JObject json = new JObject(); json["txid"] = e.Transaction.Hash.ToString(); - json["vmstate"] = e.VMState; - json["gas_consumed"] = e.GasConsumed.ToString(); - json["stack"] = e.Stack.Select(p => p.ToParameter().ToJson()).ToArray(); - json["notifications"] = e.Notifications.Select(p => + json["vmstate"] = e.ExecutionResults[0].VMState; + json["gas_consumed"] = e.ExecutionResults[0].GasConsumed.ToString(); + json["stack"] = e.ExecutionResults[0].Stack.Select(p => p.ToParameter().ToJson()).ToArray(); + json["notifications"] = e.ExecutionResults[0].Notifications.Select(p => { JObject notification = new JObject(); notification["contract"] = p.ScriptHash.ToString(); diff --git a/neo-cli/neo-cli.csproj b/neo-cli/neo-cli.csproj index 56d33b7f6..7b09bbbc3 100644 --- a/neo-cli/neo-cli.csproj +++ b/neo-cli/neo-cli.csproj @@ -1,9 +1,9 @@  - 2016-2017 The Neo Project + 2016-2018 The Neo Project Neo.CLI - 2.7.5 + 2.7.6 The Neo Project netcoreapp2.0 neo-cli @@ -28,7 +28,7 @@ - +