public static ChannelManager Create(
            NBitcoin.Network nbitcoinNetwork,
            IUserConfigProvider config,
            IChainWatchInterface chainWatchInterface,
            IKeysInterface keysInterface,
            ILogger logger,
            IBroadcaster broadcaster,
            IFeeEstimator feeEstimator,
            ulong currentBlockHeight
            )
        {
            var c = config.GetUserConfig();

            return(Create(nbitcoinNetwork, in c, chainWatchInterface, keysInterface, logger, broadcaster, feeEstimator, currentBlockHeight));
        }
Beispiel #2
0
        public static PeerManager Create(
            Span <byte> seed,
            NBitcoin.Network nbitcoinNetwork,
            IUserConfigProvider config,
            IChainWatchInterface chainWatchInterface,
            IKeysInterface keysInterface,
            IBroadcaster broadcaster,
            ILogger logger,
            IFeeEstimator feeEstimator,
            uint currentBlockHeight,
            int tickIntervalMSec = 30000
            )
        {
            var c = config.GetUserConfig();

            return(Create(seed, nbitcoinNetwork, in c, chainWatchInterface, keysInterface, broadcaster, logger, feeEstimator, currentBlockHeight, tickIntervalMSec));
        }
Beispiel #3
0
        public static PeerManager Create(
            Span <byte> seed,
            IUserConfigProvider configProvider,
            IChainWatchInterface chainWatchInterface,
            ILogger logger,
            byte[] ourNodeSecret,
            ChannelManager channelManager,
            BlockNotifier blockNotifier,
            int tickIntervalMSec      = 30000,
            NetworkGraph?networkGraph = null
            )
        {
            if (configProvider == null)
            {
                throw new ArgumentNullException(nameof(configProvider));
            }
            var c = configProvider.GetUserConfig();

            return(Create(seed, in c, chainWatchInterface, logger, ourNodeSecret, channelManager, blockNotifier, tickIntervalMSec));
        }