public IncentiveSchemeBase(IRepository repository, ITransactionNode txNode, Incentive incentive) { this.incentive = incentive; this.Repository = repository; this.TxNode = txNode; this.log = LogManager.GetLogger("TransactionLOG"); this.watch = new Stopwatch(); }
private bool ConnectToTransactionNode(string txNodeURL) { try { if (txNodeURL == null) { Log.Debug("Decentralized Mode, there is no need to have a Transaction Node!"); return(true); } this.TxNodeRemote = (ITransactionNode)Activator.GetObject(typeof(ITransactionNode), txNodeURL); Log.DebugFormat("[INFO] Incentive Engine connected to TransactionNode."); return(true); } catch (Exception ex) { Log.Error(ex.Message); return(false); } }
public CentralizedIncentiveScheme(IRepository repository, ITransactionNode txNode, Incentive incentive) : base(repository, txNode, incentive) { InitManager(incentive); }