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

Commit

Permalink
add startup parameter: --nopeers
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Zhang committed Dec 11, 2017
1 parent 8685250 commit 46c5431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo-cli/Shell/MainService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ private bool OnShowUtxoCommand(string[] args)
protected internal override void OnStart(string[] args)
{
Blockchain.RegisterBlockchain(new LevelDBBlockchain(Settings.Default.Paths.Chain));
if (File.Exists(PeerStatePath))
if (!args.Contains("--nopeers") && File.Exists(PeerStatePath))
using (FileStream fs = new FileStream(PeerStatePath, FileMode.Open, FileAccess.Read, FileShare.Read))
{
LocalNode.LoadState(fs);
Expand Down

0 comments on commit 46c5431

Please sign in to comment.