private void RunScenario(string directory) { NodeBuilder = NodeBuilder.Create(directory); User1 = NodeBuilder.CreateNode(); User2 = NodeBuilder.CreateNode(); Explorer = NodeBuilder.CreateNode(); NodeBuilder.StartAll(); User1.CreateRPCClient().Generate(1); User1.Sync(Explorer, true); Explorer.CreateRPCClient().Generate(1); Explorer.Sync(User2, true); User2.CreateRPCClient().Generate(101); User1.Sync(User2, true); var a = User1.CreateRPCClient().GetBlockCount(); var b = User1.CreateRPCClient().GetBlockCount(); var c = User1.CreateRPCClient().GetBlockCount(); Task.WaitAll(new Task[] { User1.CreateRPCClient().SendCommandAsync("stop"), User2.CreateRPCClient().SendCommandAsync("stop"), Explorer.CreateRPCClient().SendCommandAsync("stop") }.ToArray()); User1.WaitForExit(); User2.WaitForExit(); Explorer.WaitForExit(); NodeBuilder = null; }