Skip to content

Commit

Permalink
Merge pull request #101 from SiaFoundation/mod
Browse files Browse the repository at this point in the history
mod: Update core dependency
  • Loading branch information
n8maninger authored Sep 27, 2024
2 parents 9d859c5 + 81231df commit f45eedc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 4 additions & 2 deletions chain/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
}
}
}
Expand Down
8 changes: 3 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
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
)

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
)
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit f45eedc

Please sign in to comment.