Skip to content

Commit

Permalink
Merge pull request #243 from SiaFoundation/nate/loosen-renewal-txnset…
Browse files Browse the repository at this point in the history
…-checks

Change renewal validation
  • Loading branch information
n8maninger authored Dec 18, 2023
2 parents d29812a + 1ab32cf commit 22236db
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions rhp/v3/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,10 +597,5 @@ func validRenewalTxnSet(txnset []types.Transaction) error {
case len(txnset[len(txnset)-1].FileContractRevisions) != 1:
return errors.New("transaction set must contain exactly one file contract revision")
}
for _, txn := range txnset[:len(txnset)-1] {
if len(txn.FileContracts) != 0 || len(txn.FileContractRevisions) != 0 {
return errors.New("transaction set contains non-renewal transactions")
}
}
return nil
}

0 comments on commit 22236db

Please sign in to comment.