From fc0681d002490726ad9a88dae4045f9ba5cfcdd1 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Mon, 18 Nov 2024 11:02:53 +0100 Subject: [PATCH] fix build --- explorer/types.go | 2 +- internal/rhp/v3/rhp.go | 4 ++-- internal/testutil/chain.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/explorer/types.go b/explorer/types.go index cfea0770..5fb1f0a9 100644 --- a/explorer/types.go +++ b/explorer/types.go @@ -151,7 +151,7 @@ type ExtendedFileContract struct { Payout types.Currency `json:"payout"` ValidProofOutputs []ContractSiacoinOutput `json:"validProofOutputs"` MissedProofOutputs []ContractSiacoinOutput `json:"missedProofOutputs"` - UnlockHash types.Hash256 `json:"unlockHash"` + UnlockHash types.Address `json:"unlockHash"` RevisionNumber uint64 `json:"revisionNumber"` } diff --git a/internal/rhp/v3/rhp.go b/internal/rhp/v3/rhp.go index 55f7a845..cbffcf9a 100644 --- a/internal/rhp/v3/rhp.go +++ b/internal/rhp/v3/rhp.go @@ -761,13 +761,13 @@ func prepareContractRenewal(currentRevision types.FileContractRevision, renterAd WindowStart: uint64(endHeight), WindowEnd: uint64(endHeight + host.WindowSize), Payout: taxAdjustedPayout(renterPayout.Add(hostValidPayout)), - UnlockHash: types.Hash256(types.UnlockConditions{ + UnlockHash: types.UnlockConditions{ PublicKeys: []types.UnlockKey{ renterKey.PublicKey().UnlockKey(), hostKey.UnlockKey(), }, SignaturesRequired: 2, - }.UnlockHash()), + }.UnlockHash(), RevisionNumber: 0, ValidProofOutputs: []types.SiacoinOutput{ {Value: renterPayout, Address: renterAddress}, diff --git a/internal/testutil/chain.go b/internal/testutil/chain.go index c7e04fe9..2af080c6 100644 --- a/internal/testutil/chain.go +++ b/internal/testutil/chain.go @@ -53,7 +53,7 @@ func PrepareContractFormation(renterPubKey types.PublicKey, hostKey types.Public WindowStart: startHeight, WindowEnd: endHeight, Payout: payout, - UnlockHash: types.Hash256(uc.UnlockHash()), + UnlockHash: uc.UnlockHash(), RevisionNumber: 0, ValidProofOutputs: []types.SiacoinOutput{ {Value: renterPayout, Address: refundAddr},