Skip to content

Commit 2b765a9

Browse files
committed
http based mk12 deals
1 parent 8fe9b8a commit 2b765a9

File tree

16 files changed

+909
-259
lines changed

16 files changed

+909
-259
lines changed

Diff for: .github/image/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ RUN git submodule update --init
2323
RUN go mod download
2424

2525
# Stage 2: Install Lotus binary
26-
FROM ghcr.io/filecoin-shipyard/lotus-containers:lotus-v1.32.1-devnet AS lotus-test
26+
FROM ghcr.io/filecoin-shipyard/lotus-containers:lotus-v1.32.2-devnet AS lotus-test
2727

2828
# Stage 3: Build the final image
2929
FROM myoung34/github-runner AS curio-github-runner

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ build_lotus?=0
264264
curio_docker_user?=curio
265265
curio_base_image=$(curio_docker_user)/curio-all-in-one:latest-debug
266266
ffi_from_source?=0
267-
lotus_version?=v1.32.1
267+
lotus_version?=v1.32.2
268268

269269
ifeq ($(build_lotus),1)
270270
# v1: building lotus image with provided lotus version

Diff for: cmd/curio/tasks/tasks.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,10 @@ func StartTasks(ctx context.Context, dependencies *deps.Deps, shutdownChan chan
226226

227227
{
228228
// Market tasks
229+
var dm *storage_market.CurioStorageDealMarket
229230
if cfg.Subsystems.EnableDealMarket {
230231
// Main market poller should run on all nodes
231-
dm := storage_market.NewCurioStorageDealMarket(miners, db, cfg, si, full, as)
232+
dm = storage_market.NewCurioStorageDealMarket(miners, db, cfg, si, full, as)
232233
err := dm.StartMarket(ctx)
233234
if err != nil {
234235
return nil, err
@@ -264,7 +265,7 @@ func StartTasks(ctx context.Context, dependencies *deps.Deps, shutdownChan chan
264265
activeTasks = append(activeTasks, ipniTask, indexingTask)
265266

266267
if cfg.HTTP.Enable {
267-
err = cuhttp.StartHTTPServer(ctx, dependencies)
268+
err = cuhttp.StartHTTPServer(ctx, dependencies, dm)
268269
if err != nil {
269270
return nil, xerrors.Errorf("failed to start the HTTP server: %w", err)
270271
}

Diff for: cmd/sptool/main.go

+11-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"github.com/filecoin-project/curio/build"
1515

1616
"github.com/filecoin-project/lotus/cli/spcli"
17+
cliutil "github.com/filecoin-project/lotus/cli/util"
1718
)
1819

1920
var log = logging.Logger("sptool")
@@ -50,9 +51,18 @@ func main() {
5051
Usage: "miner actor to manage",
5152
EnvVars: []string{"SP_ADDRESS"},
5253
},
54+
&cli.BoolFlag{
55+
Name: "verbose",
56+
Usage: "enable verbose logging",
57+
Aliases: []string{"vv"},
58+
},
5359
},
5460
Before: func(cctx *cli.Context) error {
55-
return logging.SetLogLevel("sptool", cctx.String("sptool"))
61+
if cctx.IsSet("verbose") {
62+
cliutil.IsVeryVerbose = true
63+
return logging.SetLogLevel("sptool", "DEBUG")
64+
}
65+
return logging.SetLogLevel("sptool", "INFO")
5666
},
5767
}
5868

0 commit comments

Comments
 (0)