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

Contractor attempts to renew contracts prior to renewwindow #2866

@mtlynch

Description

@mtlynch

BUG REPORT

Stack Trace or error message

/renter shows the following:

{
    "currentperiod": 141743,
    "financialmetrics": {
        "contractspending": "2966666666666666666666666637",
        "downloadspending": "0",
        "storagespending": "829812797467921349445190510",
        "unspent": "1139328082921212303324167387",
        "uploadspending": "64192452944199680563975466"
    },
    "settings": {
        "allowance": {
            "funds": "5000000000000000000000000000",
            "hosts": 50,
            "period": 12960,
            "renewwindow": 6480
        }
    }
}

Expected behavior

My understanding is that the contract started at block 141743, ends at block 12960, and should attempt to renew contracts at block 141743 + 6480 = 148223.

Block 148223 is several weeks away, so my expectation is that the contract will not attempt to renew until that block occurs.

Actual behavior

contractor.log is filled with attempts to renew contracts:

2018/03/11 16:31:25.062784 contracts.go:479: WARN: failed to renew contract 2a49afa77dd37e59e5ab1c8c22de307e7eef517ed36d4b9218af842ea058abed: insufficient balance

Environment

  • Sia version: 1.3.1
  • OS: Win10 x64

Logs: https://gist.github.com/mtlynch/7726468eca7ffef0ff6ac9370b05024e

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions