Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Update initial current period to be set in the past when allowance is created #3157

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

MSevey
Copy link
Contributor

@MSevey MSevey commented Jul 11, 2018

TestRenterSpendingReporting is failing in the siatest package, but I want #3131 to be merged so I can rebase before debugging.

This resolves #3117

@@ -65,7 +65,7 @@ func (c *Contractor) SetAllowance(a modules.Allowance) error {
// set the current period to the blockheight if the existing allowance is
// empty
if reflect.DeepEqual(c.allowance, modules.Allowance{}) {
c.currentPeriod = c.blockHeight
c.currentPeriod = c.blockHeight - a.RenewWindow

This comment was marked as resolved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Renter Allowance initial current period in the past
1 participant