示例#1
0
 public BitcoinDaemonTransactionBroadcaster(IBlockchainStateManagerSettingsProvider _settingsProvider, IDaemonHelper _daemonHelper,
                                            IBlockchainExplorerHelper _blockchainExplorerHelper)
 {
     settingsProvider         = _settingsProvider;
     daemonHelper             = _daemonHelper;
     blockchainExplorerHelper = _blockchainExplorerHelper;
 }
示例#2
0
        static void Main(string[] args)
        {
            string[] reservedPrivateKey = new string[] {
                "cQMqC1Vqyi6o62wE1Z1ZeWDbMCkRDZW5dMPJz8QT9uMKQaMZa8JY",
                "cQyt2zxAS2uV7HJWR9hf16pFDTye8YsGL6hzd9pQzMoo9m24RGoV",
                "cSFbgd8zKDSCDHgGocccngyVSfGZsyZFiTXtimTonHyL44gTKTNU", // 03eb5b1a93a77d6743bd4657614d87f4d2d40566558d4c8faab188d957c32c1976
                "cPBtsvLrD3DnbdGgDZ2EMbZnQurzBVmgmejiMv55jH9JehPDn5Aq"  // 035441d55de4f28fcb967472a1f9790ecfea9a9a2a92e301646d52cb3290b9e355
            };

            settingsProvider         = Bootstrap.container.Resolve <ISettingsProvider>();
            daemonHelper             = Bootstrap.container.Resolve <IDaemonHelper>();
            transactionBroadcaster   = Bootstrap.container.Resolve <ITransactionBroacaster>();
            feeManager               = Bootstrap.container.Resolve <IFeeManager>();
            blockchainExplorerHelper = Bootstrap.container.Resolve <IBlockchainExplorerHelper>();

            azureStorageTaskHelper = new AzureStorageTaskHelper(settingsProvider as IBlockchainStateManagerSettingsProvider);
            bitcoinTaskHelper      = new BitcoinTaskHelper(settingsProvider as IBlockchainStateManagerSettingsProvider);
            qbitninjaTaskHelper    = new QBitninjaTaskHelper(settingsProvider as IBlockchainStateManagerSettingsProvider);
            iisTaskHelper          = new IISTaskHelper();
            offchainHelper         = new OffchainHelper(blockchainExplorerHelper, settingsProvider as IBlockchainStateManagerSettingsProvider);

            if (!PutBlockchainInAKnownState(reservedPrivateKey).Result)
            {
                System.Console.WriteLine("Error putting blockchain in a known state.");
            }
        }
示例#3
0
 public FeeManager(ITransactionBroacaster _transactionBroadcaster, IBlockchainExplorerHelper _explorerHelper)
 {
     transactionBroadcaster = _transactionBroadcaster;
     explorerHelper         = _explorerHelper;
 }
 public StateManagerHelper(IBlockchainExplorerHelper _blockchainExplorerHelper, IDaemonHelper _daemonHelper)
 {
     blockchainExplorerHelper = _blockchainExplorerHelper;
     daemonHelper             = _daemonHelper;
 }
示例#5
0
 static Helper()
 {
     settingsProvider         = Bootstrap.container.Resolve <ISettingsProvider>();
     blockchainExplorerHelper = Bootstrap.container.Resolve <IBlockchainExplorerHelper>();
 }