From a47038df6d623139c7e9e6189aa78e993e3fcc43 Mon Sep 17 00:00:00 2001 From: Erik Zhang Date: Thu, 20 Jul 2017 19:35:01 +0800 Subject: [PATCH] upgrade to 2.0.1 --- neo-cli/Shell/MainService.cs | 2 +- neo-cli/config.mainnet.json | 10 ++++++++++ neo-cli/config.testnet.json | 10 ++++++++++ neo-cli/neo-cli.csproj | 6 +++--- neo-cli/protocol.mainnet.json | 28 ++++++++++++++++++++++++++++ neo-cli/protocol.testnet.json | 28 ++++++++++++++++++++++++++++ 6 files changed, 80 insertions(+), 4 deletions(-) create mode 100644 neo-cli/config.mainnet.json create mode 100644 neo-cli/config.testnet.json create mode 100644 neo-cli/protocol.mainnet.json create mode 100644 neo-cli/protocol.testnet.json diff --git a/neo-cli/Shell/MainService.cs b/neo-cli/Shell/MainService.cs index d713ce7cf..9934fd0dd 100644 --- a/neo-cli/Shell/MainService.cs +++ b/neo-cli/Shell/MainService.cs @@ -23,7 +23,7 @@ internal class MainService : ConsoleServiceBase private ConsensusWithPolicy consensus; protected LocalNode LocalNode { get; private set; } - protected override string Prompt => "ant"; + protected override string Prompt => "neo"; public override string ServiceName => "neo-cli"; private void ImportBlocks(Stream stream) diff --git a/neo-cli/config.mainnet.json b/neo-cli/config.mainnet.json new file mode 100644 index 000000000..72b153a99 --- /dev/null +++ b/neo-cli/config.mainnet.json @@ -0,0 +1,10 @@ +{ + "ApplicationConfiguration": { + "DataDirectoryPath": "Chain", + "NodePort": 10333, + "WsPort": 10334, + "UriPrefix": [ "http://*:10332" ], + "SslCert": "", + "SslCertPassword": "" + } +} diff --git a/neo-cli/config.testnet.json b/neo-cli/config.testnet.json new file mode 100644 index 000000000..016fcbbab --- /dev/null +++ b/neo-cli/config.testnet.json @@ -0,0 +1,10 @@ +{ + "ApplicationConfiguration": { + "DataDirectoryPath": "ChainTestNet", + "NodePort": 20333, + "WsPort": 20334, + "UriPrefix": [ "http://*:20332" ], + "SslCert": "", + "SslCertPassword": "" + } +} diff --git a/neo-cli/neo-cli.csproj b/neo-cli/neo-cli.csproj index 9b775c1fb..0718df768 100644 --- a/neo-cli/neo-cli.csproj +++ b/neo-cli/neo-cli.csproj @@ -3,7 +3,7 @@ 2016-2017 The Neo Project Neo.CLI - 2.0.0 + 2.0.1 The Neo Project netcoreapp1.0 neo-cli @@ -23,7 +23,7 @@ - + PreserveNewest PreserveNewest @@ -31,7 +31,7 @@ - + diff --git a/neo-cli/protocol.mainnet.json b/neo-cli/protocol.mainnet.json new file mode 100644 index 000000000..633757a07 --- /dev/null +++ b/neo-cli/protocol.mainnet.json @@ -0,0 +1,28 @@ +{ + "ProtocolConfiguration": { + "Magic": 7630401, + "AddressVersion": 23, + "StandbyValidators": [ + "03b209fd4f53a7170ea4444e0cb0a6bb6a53c2bd016926989cf85f9b0fba17a70c", + "02df48f60e8f3e01c48ff40b9b7f1310d7a8b2a193188befe1c2e3df740e895093", + "03b8d9d5771d8f513aa0869b9cc8d50986403b78c6da36890638c3d46a5adce04a", + "02ca0e27697b9c248f6f16e085fd0061e26f44da85b58ee835c110caa5ec3ba554", + "024c7b7fb6c310fccf1ba33b082519d82964ea93868d676662d4a59ad548df0e7d", + "02aaec38470f6aad0042c6e877cfd8087d2676b0f516fddd362801b9bd3936399e", + "02486fd15702c4490a26703112a5cc1d0923fd697a33406bd5a1c00e0013b09a70" + ], + "SeedList": [ + "seed1.neo.org:10333", + "seed2.neo.org:10333", + "seed3.neo.org:10333", + "seed4.neo.org:10333", + "seed5.neo.org:10333" + ], + "SystemFee": { + "EnrollmentTransaction": 1000, + "IssueTransaction": 500, + "PublishTransaction": 500, + "RegisterTransaction": 10000 + } + } +} diff --git a/neo-cli/protocol.testnet.json b/neo-cli/protocol.testnet.json new file mode 100644 index 000000000..f6b2d2fd4 --- /dev/null +++ b/neo-cli/protocol.testnet.json @@ -0,0 +1,28 @@ +{ + "ProtocolConfiguration": { + "Magic": 1953787457, + "AddressVersion": 23, + "StandbyValidators": [ + "0327da12b5c40200e9f65569476bbff2218da4f32548ff43b6387ec1416a231ee8", + "026ce35b29147ad09e4afe4ec4a7319095f08198fa8babbe3c56e970b143528d22", + "0209e7fd41dfb5c2f8dc72eb30358ac100ea8c72da18847befe06eade68cebfcb9", + "039dafd8571a641058ccc832c5e2111ea39b09c0bde36050914384f7a48bce9bf9", + "038dddc06ce687677a53d54f096d2591ba2302068cf123c1f2d75c2dddc5425579", + "02d02b1873a0863cd042cc717da31cea0d7cf9db32b74d4c72c01b0011503e2e22", + "034ff5ceeac41acf22cd5ed2da17a6df4dd8358fcb2bfb1a43208ad0feaab2746b" + ], + "SeedList": [ + "seed1.neo.org:20333", + "seed2.neo.org:20333", + "seed3.neo.org:20333", + "seed4.neo.org:20333", + "seed5.neo.org:20333" + ], + "SystemFee": { + "EnrollmentTransaction": 10, + "IssueTransaction": 5, + "PublishTransaction": 5, + "RegisterTransaction": 100 + } + } +}