private void MoveSmallStakesToCollectAddress() { Log.Debug("Call of method: void ProcessWallet.MoveSmallStakesToCollectAddress()."); if (!Settings.Address.CollectInputs) { Log.Information("Input collection deactivated. No inputs will be moved to the collection address."); return; } decimal stakeSplitThreshold = AccessWallet.GetStakeSplitThreshold(); List <string> transactions = ProcessInputs(new List <string> { Settings.Stake.DedicatedStakingAddress }, 1, stakeSplitThreshold * 0.7M); WaitTillAllConfirmed(transactions); }
private void GenerateStakingInputs() { Log.Debug("Call of method: void ProcessWallet.GenerateStakingInputs()."); //Get Current stakeSplitThereshold decimal stakeSplitThreshold = AccessWallet.GetStakeSplitThreshold(); Log.Information($"Initialize run with current staking threshold: {stakeSplitThreshold}."); //If ever staking input is newer than half of the patience value lower the thereshold. decimal newStakeSplitThreshold = CheckForLowerThreshold(stakeSplitThreshold); //If every staking input is older than patience value rise the thereshold newStakeSplitThreshold = CheckForHigherThreshold(newStakeSplitThreshold); if (stakeSplitThreshold != newStakeSplitThreshold) { Log.Information($"Set new staking threshold: {(int)newStakeSplitThreshold}."); AccessWallet.SetStakeSplitThreshold((int)newStakeSplitThreshold); stakeSplitThreshold = (int)newStakeSplitThreshold; } //Add Coins to low inputs ManageLowInputs(stakeSplitThreshold); CreateNewInputs(stakeSplitThreshold); }