diff --git a/chain/db.go b/chain/db.go index f3ffec9..bffec8f 100644 --- a/chain/db.go +++ b/chain/db.go @@ -566,8 +566,10 @@ func (db *DBStore) SupplementTipTransaction(txn types.Transaction) (ts consensus for _, sp := range txn.StorageProofs { if fce, ok := db.getFileContractElement(sp.ParentID, numLeaves); ok { if windowIndex, ok := db.BestIndex(fce.FileContract.WindowStart - 1); ok { - ts.ValidFileContracts = append(ts.ValidFileContracts, fce) - ts.StorageProofBlockIDs = append(ts.StorageProofBlockIDs, windowIndex.ID) + ts.StorageProofs = append(ts.StorageProofs, consensus.V1StorageProofSupplement{ + FileContract: fce, + WindowID: windowIndex.ID, + }) } } } diff --git a/go.mod b/go.mod index 399ff81..f065e5d 100644 --- a/go.mod +++ b/go.mod @@ -1,12 +1,10 @@ module go.sia.tech/coreutils -go 1.22 - -toolchain go1.23.0 +go 1.23.0 require ( go.etcd.io/bbolt v1.3.11 - go.sia.tech/core v0.4.6 + go.sia.tech/core v0.4.7 go.uber.org/zap v1.27.0 golang.org/x/crypto v0.27.0 lukechampine.com/frand v1.4.2 @@ -14,7 +12,7 @@ require ( require ( github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect - go.sia.tech/mux v1.2.0 // indirect + go.sia.tech/mux v1.3.0 // indirect go.uber.org/multierr v1.11.0 // indirect golang.org/x/sys v0.25.0 // indirect ) diff --git a/go.sum b/go.sum index a2c13b1..1ffc411 100644 --- a/go.sum +++ b/go.sum @@ -8,10 +8,10 @@ github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKs github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= go.etcd.io/bbolt v1.3.11 h1:yGEzV1wPz2yVCLsD8ZAiGHhHVlczyC9d1rP43/VCRJ0= go.etcd.io/bbolt v1.3.11/go.mod h1:dksAq7YMXoljX0xu6VF5DMZGbhYYoLUalEiSySYAS4I= -go.sia.tech/core v0.4.6 h1:QLm97a7GWBonfnMEOokqWRAqsWCUPL7kzo6k3Adwx8E= -go.sia.tech/core v0.4.6/go.mod h1:Zuq0Tn2aIXJyO0bjGu8cMeVWe+vwQnUfZhG1LCmjD5c= -go.sia.tech/mux v1.2.0 h1:ofa1Us9mdymBbGMY2XH/lSpY8itFsKIo/Aq8zwe+GHU= -go.sia.tech/mux v1.2.0/go.mod h1:Yyo6wZelOYTyvrHmJZ6aQfRoer3o4xyKQ4NmQLJrBSo= +go.sia.tech/core v0.4.7 h1:UAyErZ3nk5/7N0gIG0OEEJJrxh7ru8lgGLlaNtT/Jq0= +go.sia.tech/core v0.4.7/go.mod h1:j2Ke8ihV8or7d2VDrFZWcCkwSVHO0DNMQJAGs9Qop2M= +go.sia.tech/mux v1.3.0 h1:hgR34IEkqvfBKUJkAzGi31OADeW2y7D6Bmy/Jcbop9c= +go.sia.tech/mux v1.3.0/go.mod h1:I46++RD4beqA3cW9Xm9SwXbezwPqLvHhVs9HLpDtt58= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=