Skip to content

Commit

Permalink
Merge pull request #11 from SiaFoundation/nate/update-nodes
Browse files Browse the repository at this point in the history
Update hostd and renterd
  • Loading branch information
n8maninger authored Dec 18, 2024
2 parents 8d4e2ad + 18a3134 commit 7cfd2a9
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
10 changes: 5 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ go 1.23.1
toolchain go1.23.2

require (
go.sia.tech/core v0.7.2-0.20241210224920-0534a5928ddb
go.sia.tech/coreutils v0.7.1-0.20241211045514-6881993d8806
go.sia.tech/hostd v1.1.3-0.20241212215223-9e3440475bed
go.sia.tech/core v0.9.0
go.sia.tech/coreutils v0.8.1-0.20241218181949-43f6ab81acde
go.sia.tech/hostd v1.1.3-0.20241218083322-ae9c8a971fe0
go.sia.tech/jape v0.12.1
go.sia.tech/renterd v1.1.1-0.20241212160145-9b05f245be23
go.sia.tech/walletd v0.8.1-0.20241210081245-ca3d83da2781
go.sia.tech/renterd v1.1.1-0.20241218130411-9780497f1861
go.sia.tech/walletd v0.8.1-0.20241217084958-e4f5880d4d06
go.uber.org/zap v1.27.0
lukechampine.com/frand v1.5.1
)
Expand Down
20 changes: 10 additions & 10 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,22 @@ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOf
github.com/stretchr/testify v1.10.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.7.2-0.20241210224920-0534a5928ddb h1:JHX+qWKS9sAXmEroICAu2jPQkr3CYUF7iWd/zlATsBM=
go.sia.tech/core v0.7.2-0.20241210224920-0534a5928ddb/go.mod h1:tM9tPD+1jp8d+dqVpX6idTyv5RpI0GEh5L5SyuOpqlc=
go.sia.tech/coreutils v0.7.1-0.20241211045514-6881993d8806 h1:zmLtpmFQPKMukYMiQByZzOODvMshriyLhK12BnIsmU8=
go.sia.tech/coreutils v0.7.1-0.20241211045514-6881993d8806/go.mod h1:6z3oHrQqcLoFEAT/l6XnvOivEGXgIfWBKcq0OqsouWA=
go.sia.tech/core v0.9.0 h1:qV7V8nkNaPvBEhkbwgrETTkb7JCMcAnKUQt9nUumP4k=
go.sia.tech/core v0.9.0/go.mod h1:3NAvYHuzAZg9vP6pyIMOxjTkgHBQ3vx9cXTqRF6oEa4=
go.sia.tech/coreutils v0.8.1-0.20241218181949-43f6ab81acde h1:UlRDNQLTj+xE3aOeIAH9fqdM7bWT7I1zUE+5gXNoSRM=
go.sia.tech/coreutils v0.8.1-0.20241218181949-43f6ab81acde/go.mod h1:xhIbFjjkzmCF8Dt73ZvquaBQCT2Dje7AKYBRAesn93w=
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.20241212215223-9e3440475bed h1:C42AxWwwoP13EhZsdWwR17Rc9S7gXI4JnRN0AyZRxc8=
go.sia.tech/hostd v1.1.3-0.20241212215223-9e3440475bed/go.mod h1:6wTgoXKmsLQT22lUcHI4/dUcb3mhXFR+9zYWIki8Qho=
go.sia.tech/hostd v1.1.3-0.20241218083322-ae9c8a971fe0 h1:QtF8l+pHZq6gPyDyuQoMv8GdwU6lvz39y4I34S3cuvo=
go.sia.tech/hostd v1.1.3-0.20241218083322-ae9c8a971fe0/go.mod h1:9jRImPfriQKypd7O6O46BQzRkyx+0tRabNKxQxJxDR8=
go.sia.tech/jape v0.12.1 h1:xr+o9V8FO8ScRqbSaqYf9bjj1UJ2eipZuNcI1nYousU=
go.sia.tech/jape v0.12.1/go.mod h1:wU+h6Wh5olDjkPXjF0tbZ1GDgoZ6VTi4naFw91yyWC4=
go.sia.tech/mux v1.3.0 h1:hgR34IEkqvfBKUJkAzGi31OADeW2y7D6Bmy/Jcbop9c=
go.sia.tech/mux v1.3.0/go.mod h1:I46++RD4beqA3cW9Xm9SwXbezwPqLvHhVs9HLpDtt58=
go.sia.tech/renterd v1.1.1-0.20241212160145-9b05f245be23 h1:xxQy3FPDEO/QVJqXRVIC9VlkAwUkEwtj6b2HbcyOVo0=
go.sia.tech/renterd v1.1.1-0.20241212160145-9b05f245be23/go.mod h1:DHf0cJuZed56t18XUU73fSYBhzlp6v48XLK4BWLyKWc=
go.sia.tech/walletd v0.8.1-0.20241210081245-ca3d83da2781 h1:3yBtVEHVj9GLZx2OmmaP3CeemZoOCgPWe9fNTzByPrI=
go.sia.tech/walletd v0.8.1-0.20241210081245-ca3d83da2781/go.mod h1:iW50oOq4TJrKC6jyfbiaiiegjzQ8rrKY5lbqwZdpwuY=
go.sia.tech/renterd v1.1.1-0.20241218130411-9780497f1861 h1:7paQAH/L5cDua/Z6xwYNGO8xUsxjbKZK6ZWn8wC+BvU=
go.sia.tech/renterd v1.1.1-0.20241218130411-9780497f1861/go.mod h1:6y728fT2o4VmkjYmuOhaqPTNqTKYAwN80ECEVXRlUXA=
go.sia.tech/walletd v0.8.1-0.20241217084958-e4f5880d4d06 h1:Ic47H0RUOGlfFqQbigIdWpDzm10aqCAQTAQajb+9vdA=
go.sia.tech/walletd v0.8.1-0.20241217084958-e4f5880d4d06/go.mod h1:ylDVaCuJ2kuCHwzHAxS4Xbf0Z74CigPXSdI8hvoDbJE=
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
4 changes: 2 additions & 2 deletions nodes/hostd.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (m *Manager) StartHostd(ctx context.Context, sk types.PrivateKey, ready cha
return fmt.Errorf("failed to add volume: %w", err)
}

contractManager, err := contracts.NewManager(store, vm, cm, s, wm, contracts.WithLog(log.Named("contracts")), contracts.WithAlerter(am))
contractManager, err := contracts.NewManager(store, vm, cm, s, wm, contracts.WithLog(log.Named("contracts")), contracts.WithAlerter(am), contracts.WithRevisionSubmissionBuffer(10))
if err != nil {
return fmt.Errorf("failed to create contracts manager: %w", err)
}
Expand All @@ -257,7 +257,7 @@ func (m *Manager) StartHostd(ctx context.Context, sk types.PrivateKey, ready cha
go rhp3.Serve()
defer rhp3.Close()

rhp4 := rhp4.NewServer(sk, cm, s, contractManager, wm, cfm, vm, rhp4.WithPriceTableValidity(10*time.Minute), rhp4.WithContractProofWindowBuffer(10))
rhp4 := rhp4.NewServer(sk, cm, s, contractManager, wm, cfm, vm, rhp4.WithPriceTableValidity(10*time.Minute))
go rhp.ServeRHP4SiaMux(rhp4Listener, rhp4, log.Named("rhp4"))

ex := explorer.New("https://api.siascan.com")
Expand Down
20 changes: 10 additions & 10 deletions nodes/renterd.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,16 +287,16 @@ func (m *Manager) StartRenterd(ctx context.Context, sk types.PrivateKey, ready c
}

ap, err := autopilot.New(config.Autopilot{
Enabled: true,
AllowRedundantHostIPs: true,
Heartbeat: time.Second,
MigrationHealthCutoff: 0.99,
MigratorParallelSlabsPerWorker: 1,
RevisionSubmissionBuffer: 0,
ScannerInterval: 15 * time.Second,
ScannerBatchSize: 10,
ScannerNumThreads: 1,
}, busClient, []autopilot.Worker{workerClient}, log.Named("autopilot"))
Enabled: true,
AllowRedundantHostIPs: true,
Heartbeat: time.Second,
MigratorHealthCutoff: 0.99,
MigratorNumThreads: 1,
RevisionSubmissionBuffer: 0,
ScannerInterval: 15 * time.Second,
ScannerBatchSize: 10,
ScannerNumThreads: 1,
}, ([32]byte)(sk[:32]), busClient, log.Named("autopilot"))
if err != nil {
return fmt.Errorf("failed to create autopilot: %w", err)
}
Expand Down

0 comments on commit 7cfd2a9

Please sign in to comment.