예제 #1
0
        public void Initialize(NodeConfiguration conf)
        {
            _assemblyDir = conf.LauncherAssemblyLocation;
            NodeConfig.Instance.ECKeyPair = conf.KeyPair;

            SetupConsensus();

            MessageHub.Instance.Subscribe <TxReceived>(async inTx =>
            {
                await _txHub.AddTransactionAsync(inTx.Transaction);
            });

            _txHub.Initialize();
        }