From 9a3ee1cdabdd8c7674aa8147790981a1170ae9b6 Mon Sep 17 00:00:00 2001 From: Nate Maninger Date: Fri, 25 Oct 2024 23:50:10 -0700 Subject: [PATCH] deps: update core and coreutils --- go.mod | 4 ++-- go.sum | 8 ++++---- nodes/hostd.go | 2 +- nodes/renterd.go | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index a131c18..d8659a7 100644 --- a/go.mod +++ b/go.mod @@ -5,8 +5,8 @@ go 1.23.1 toolchain go1.23.2 require ( - go.sia.tech/core v0.4.8-0.20240928202806-0e77790bd8bf - go.sia.tech/coreutils v0.4.2-0.20241017012544-0b4946403c93 + go.sia.tech/core v0.5.0 + go.sia.tech/coreutils v0.5.0 go.sia.tech/hostd v1.1.3-0.20241022083902-7d61fc09be7c go.sia.tech/jape v0.12.1 go.sia.tech/renterd v1.1.0-beta.4.0.20241025151653-2b933326be16 diff --git a/go.sum b/go.sum index d8d301e..6bb7b78 100644 --- a/go.sum +++ b/go.sum @@ -49,10 +49,10 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= 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.8-0.20240928202806-0e77790bd8bf h1:x/lM7Y8Rlo12rcpPXapLvSVNyrHZEKO6j4eLNccPMKw= -go.sia.tech/core v0.4.8-0.20240928202806-0e77790bd8bf/go.mod h1:j2Ke8ihV8or7d2VDrFZWcCkwSVHO0DNMQJAGs9Qop2M= -go.sia.tech/coreutils v0.4.2-0.20241017012544-0b4946403c93 h1:38XTWxsDR4Q8ILQHFFSoB906jRrcb1UBaWg5d8MBt9M= -go.sia.tech/coreutils v0.4.2-0.20241017012544-0b4946403c93/go.mod h1:JIaR+zdGZsqPLBM5mVsnwWJ7hBsES+SAEDQg5EFBitM= +go.sia.tech/core v0.5.0 h1:feLC7DSCF+PhU157s/94106hFKyiGrGQ9HC3/dF/l7E= +go.sia.tech/core v0.5.0/go.mod h1:P3C1BWa/7J4XgdzWuaYHBvLo2RzZ0UBaJM4TG1GWB2g= +go.sia.tech/coreutils v0.5.0 h1:/xKxdw83iZy0jjLzI2NGHyG4azyjK5DJscxpkr6nIGQ= +go.sia.tech/coreutils v0.5.0/go.mod h1:VYM4FcmlhVrpDGvglLHjRW+gitoaxPNLvp5mL2quilo= go.sia.tech/gofakes3 v0.0.5 h1:vFhVBUFbKE9ZplvLE2w4TQxFMQyF8qvgxV4TaTph+Vw= go.sia.tech/gofakes3 v0.0.5/go.mod h1:LXEzwGw+OHysWLmagleCttX93cJZlT9rBu/icOZjQ54= go.sia.tech/hostd v1.1.3-0.20241022083902-7d61fc09be7c h1:oGRzqksT2MFoS4SvkrGbUG1LXNbnmv2KBzzv8uf0R4E= diff --git a/nodes/hostd.go b/nodes/hostd.go index 7f14fd2..69359d0 100644 --- a/nodes/hostd.go +++ b/nodes/hostd.go @@ -261,7 +261,7 @@ func (m *Manager) StartHostd(ctx context.Context, sk types.PrivateKey, ready cha // mine blocks to fund the wallet walletAddress := types.StandardUnlockHash(sk.PublicKey()) - if err := m.MineBlocks(ctx, int(network.GenesisState().MaturityHeight())+20, walletAddress); err != nil { // TODO: hack until network.MaturityDelay is available + if err := m.MineBlocks(ctx, int(network.MaturityDelay)+20, walletAddress); err != nil { return fmt.Errorf("failed to mine blocks: %w", err) } diff --git a/nodes/renterd.go b/nodes/renterd.go index 37a61e4..d013d90 100644 --- a/nodes/renterd.go +++ b/nodes/renterd.go @@ -389,7 +389,7 @@ func (m *Manager) StartRenterd(ctx context.Context, sk types.PrivateKey, ready c // mine blocks to fund the wallet walletAddress := types.StandardUnlockHash(pk) - if err := m.MineBlocks(ctx, int(network.GenesisState().MaturityHeight())+20, walletAddress); err != nil { // TODO: hack until network.MaturityDelay is available + if err := m.MineBlocks(ctx, int(network.MaturityDelay)+20, walletAddress); err != nil { return fmt.Errorf("failed to mine blocks: %w", err) }