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(); }
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()); }
public BlockHandler(OXSystem system) : this(system, null) { }