Skip to content

Commit

Permalink
Merge pull request #185 from SiaFoundation/pj/upgrade-core
Browse files Browse the repository at this point in the history
upgrade `core`
  • Loading branch information
n8maninger authored Oct 13, 2023
2 parents e31e42e + bdd53a1 commit 920057f
Show file tree
Hide file tree
Showing 13 changed files with 290 additions and 358 deletions.
9 changes: 7 additions & 2 deletions build/network_testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@ func Network() (*consensus.Network, types.Block) {
n.HardforkASIC.OakTarget = types.BlockID{255, 255}

n.HardforkFoundation.Height = 50
n.HardforkFoundation.PrimaryAddress = types.GeneratePrivateKey().PublicKey().StandardAddress()
n.HardforkFoundation.FailsafeAddress = types.GeneratePrivateKey().PublicKey().StandardAddress()
n.HardforkFoundation.PrimaryAddress = types.StandardUnlockHash(types.GeneratePrivateKey().PublicKey())
n.HardforkFoundation.FailsafeAddress = types.StandardUnlockHash(types.GeneratePrivateKey().PublicKey())

// make it difficult to reach v2 in most tests
n.HardforkV2.AllowHeight = 1000
n.HardforkV2.RequireHeight = 1020

return n, types.Block{
Transactions: []types.Transaction{
{
Expand Down
5 changes: 3 additions & 2 deletions cmd/hostd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"syscall"
"time"

"go.sia.tech/core/types"
"go.sia.tech/core/wallet"
"go.sia.tech/hostd/api"
"go.sia.tech/hostd/build"
Expand Down Expand Up @@ -114,7 +115,7 @@ func mustGetSeedPhrase(log *zap.Logger) string {
fmt.Println("You will need to re-enter this seed phrase every time you start hostd.")
fmt.Println("")
fmt.Println("\033[34;1mSeed Phrase:\033[0m", phrase)
fmt.Println("\033[34;1mWallet Address:\033[0m", key.PublicKey().StandardAddress())
fmt.Println("\033[34;1mWallet Address:\033[0m", types.StandardUnlockHash(key.PublicKey()))

// confirm seed phrase
for {
Expand Down Expand Up @@ -240,7 +241,7 @@ func main() {
}
key := wallet.KeyFromSeed(&seed, 0)
fmt.Println("Recovery Phrase:", phrase)
fmt.Println("Address", key.PublicKey().StandardAddress())
fmt.Println("Address", types.StandardUnlockHash(key.PublicKey()))
return
}

Expand Down
27 changes: 1 addition & 26 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/hashicorp/golang-lru/v2 v2.0.5
github.com/mattn/go-sqlite3 v1.14.17
gitlab.com/NebulousLabs/encoding v0.0.0-20200604091946-456c3dc907fe
go.sia.tech/core v0.1.12-0.20230529164041-6347a98003be
go.sia.tech/core v0.1.12-0.20231011160830-b58e9e8ec3ce
go.sia.tech/jape v0.9.1-0.20230525021720-ecf031ecbffb
go.sia.tech/renterd v0.6.0
go.sia.tech/siad v1.5.10-0.20230228235644-3059c0b930ca
Expand All @@ -25,29 +25,18 @@ require (
require (
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect
github.com/benbjohnson/clock v1.3.0 // indirect
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/dchest/threefish v0.0.0-20120919164726-3ecf4c494abf // indirect
github.com/felixge/httpsnoop v1.0.3 // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
github.com/go-logr/logr v1.2.4 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/gotd/contrib v0.19.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.2 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.4 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/julienschmidt/httprouter v1.3.0 // indirect
github.com/klauspost/compress v1.16.7 // indirect
github.com/klauspost/cpuid/v2 v2.2.5 // indirect
github.com/klauspost/reedsolomon v1.11.8 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/montanaflynn/stats v0.7.1 // indirect
github.com/pkg/errors v0.9.1 // indirect
gitlab.com/NebulousLabs/bolt v1.4.4 // indirect
gitlab.com/NebulousLabs/demotemutex v0.0.0-20151003192217-235395f71c40 // indirect
Expand All @@ -62,26 +51,12 @@ require (
gitlab.com/NebulousLabs/ratelimit v0.0.0-20200811080431-99b8f0768b2e // indirect
gitlab.com/NebulousLabs/siamux v0.0.2-0.20220630142132-142a1443a259 // indirect
gitlab.com/NebulousLabs/threadgroup v0.0.0-20200608151952-38921fbef213 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.42.0 // indirect
go.opentelemetry.io/otel v1.16.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.16.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.16.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.16.0 // indirect
go.opentelemetry.io/otel/metric v1.16.0 // indirect
go.opentelemetry.io/otel/sdk v1.16.0 // indirect
go.opentelemetry.io/otel/trace v1.16.0 // indirect
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
go.sia.tech/mux v1.2.0 // indirect
go.sia.tech/web v0.0.0-20230817201630-c3d9328334b1 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/crypto v0.13.0 // indirect
golang.org/x/net v0.15.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/tools v0.13.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230815205213-6bfd019c3878 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230815205213-6bfd019c3878 // indirect
google.golang.org/grpc v1.57.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gorm.io/gorm v1.25.4 // indirect
)
Loading

0 comments on commit 920057f

Please sign in to comment.