Пример #1
0
 public BlockHandler(OXSystem system, Wallet wallet)
 {
     this.oxsystem = system;
     if (wallet != default)
     {
         this.wallet = wallet;
         WalletAccount walletAccount = wallet.GetHeldAccounts().FirstOrDefault();
         this.Account = walletAccount;
         this.KeyPair = walletAccount.GetKey();
     }
     LoadPermits();
 }
Пример #2
0
        static void Main()
        {
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
            Application.SetHighDpiMode(HighDpiMode.SystemAware);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var seeds = Settings.Default.SeedNode.Seeds;

            ProtocolSettings.InitSeed(seeds);
            LevelDBStore store = new LevelDBStore(Settings.Default.Paths.Chain);

            OXSystem = new OXSystem(store);
            Application.Run(MainForm = new MainForm());
            Application.Run(new MainForm());
        }
Пример #3
0
 public BlockHandler(OXSystem system) : this(system, null)
 {
 }