Esempio n. 1
0
 protected internal override void OnStart()
 {
     Blockchain.RegisterBlockchain(new LevelDBBlockchain());
     Blockchain.Default.PersistCompleted += Blockchain_PersistCompleted;
     localnode = new LocalNode();
     localnode.Start();
 }
Esempio n. 2
0
 protected internal override void OnStart(string[] args)
 {
     Blockchain.RegisterBlockchain(new LevelDBBlockchain(Settings.Default.DataDirectoryPath));
     LocalNode = new LocalNode();
     LocalNode.Start();
     if (args.Length >= 1 && args[0] == "/rpc")
     {
         rpc = new RpcServer();
         rpc.Start();
     }
 }
Esempio n. 3
0
 protected internal override void OnStart()
 {
     Blockchain.RegisterBlockchain(new LevelDBBlockchain(Settings.Default.DataDirectoryPath));
     localnode = new LocalNode();
     localnode.Start();
     StartMine(source.Token);
 }
Esempio n. 4
0
 protected internal override void OnStart()
 {
     Blockchain.RegisterBlockchain(new LevelDBBlockchain(Settings.Default.DataDirectoryPath));
     Blockchain.Default.PersistCompleted += Blockchain_PersistCompleted;
     LocalNode.NewInventory += LocalNode_NewInventory;
     localnode = new LocalNode();
     localnode.Start();
 }