Commit ff9dfaa8 authored by Luke Champine's avatar Luke Champine

don't save roots of old contracts

parent a4310c69
......@@ -40,6 +40,7 @@ func (c *Contractor) persistData() contractorPersist {
data.Contracts[contract.ID.String()] = contract
}
for _, contract := range c.oldContracts {
contract.MerkleRoots = []crypto.Hash{} // prevent roots from being saved to disk twice
data.OldContracts = append(data.OldContracts, contract)
}
for oldID, newID := range c.renewedIDs {
......
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