Commit 4489ea4e authored by Luke Champine's avatar Luke Champine

temporary workaround for empty json values

parent 5d6427bb
......@@ -7,6 +7,7 @@ import (
"time"
"github.com/NebulousLabs/Sia/build"
"github.com/NebulousLabs/Sia/crypto"
"github.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/modules/renter/proto"
"github.com/NebulousLabs/Sia/types"
......@@ -113,7 +114,8 @@ func (c *Contractor) managedNewContract(host modules.HostDBEntry, numSectors uin
contractValue := contract.RenterFunds()
c.log.Printf("Formed contract with %v for %v SC", host.NetAddress, contractValue.Div(types.SiacoinPrecision))
contract.MerkleRoots = []crypto.Hash{}
c.cachedRevisions[contract.ID] = cachedRevision{contract.LastRevision, contract.MerkleRoots}
return contract, nil
}
......
......@@ -71,6 +71,8 @@ func (c *Contractor) managedRenew(contract modules.RenterContract, numSectors ui
return modules.RenterContract{}, err
}
c.cachedRevisions[newContract.ID] = cachedRevision{newContract.LastRevision, newContract.MerkleRoots}
return newContract, nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment