Skip to content

Commit

Permalink
fix issue where proof output fields would be overwritten in ContractR…
Browse files Browse the repository at this point in the history
…evisions
  • Loading branch information
chris124567 committed Oct 16, 2024
1 parent 4d34627 commit 7b58612
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions persist/sqlite/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,11 @@ func (s *Store) ContractRevisions(id types.FileContractID) (revisions []explorer
// contracts always have outputs
return fmt.Errorf("missing proof outputs for contract %v", contractIDs[i])
}
revisions[i] = revision.FileContract
revisions[i].FileContract.ValidProofOutputs = output.valid
revisions[i].FileContract.MissedProofOutputs = output.missed
}

for i, fce := range fces {
revisions[i] = fce.FileContract
}

if len(revisions) == 0 {
return explorer.ErrContractNotFound
}
Expand Down

0 comments on commit 7b58612

Please sign in to comment.