Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
 public CentralizedIncentiveScheme(IRepository repository, ITransactionNode txNode, Incentive incentive) : base(repository, txNode, incentive)
 {
     InitManager(incentive);
 }