Skip to content

Commit

Permalink
Merge branch 'master' into plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Dec 2, 2019
2 parents f03b592 + e552255 commit 24ddfd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/neo/NeoSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ public class NeoSystem : IDisposable
public NeoSystem(string storageEngine = null)
{
Plugin.LoadPlugins(this);
this.store = storageEngine is null ? new MemoryStore() : Plugin.Storages[storageEngine].GetStore();
this.store = string.IsNullOrEmpty(storageEngine) || storageEngine == nameof(MemoryStore)
? new MemoryStore()
: Plugin.Storages[storageEngine].GetStore();
this.Blockchain = ActorSystem.ActorOf(Ledger.Blockchain.Props(this, store));
this.LocalNode = ActorSystem.ActorOf(Network.P2P.LocalNode.Props(this));
this.TaskManager = ActorSystem.ActorOf(Network.P2P.TaskManager.Props(this));
Expand Down
6 changes: 0 additions & 6 deletions tests/neo.UnitTests/Ledger/UT_Blockchain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ public void Initialize()
Blockchain.Singleton.MemPool.TryAdd(txSample.Hash, txSample);
}

[TestMethod]
public void TestConstructor()
{
system.ActorSystem.ActorOf(Blockchain.Props(system, Blockchain.Singleton.Store)).Should().NotBeSameAs(system.Blockchain);
}

[TestMethod]
public void TestContainsBlock()
{
Expand Down

0 comments on commit 24ddfd6

Please sign in to comment.