Skip to content

Commit 3b9ef90

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/pdp
2 parents e516538 + c27af0b commit 3b9ef90

File tree

21 files changed

+1019
-303
lines changed

21 files changed

+1019
-303
lines changed

.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

Makefile

+7-4
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,12 @@ build/.update-modules:
6767
# Conditional execution block for Linux
6868
OS := $(shell uname)
6969
ifeq ($(OS), Linux)
70-
$(eval CUDA_PATH := $(shell dirname $$(dirname $$(which nvcc))))
71-
$(eval CUDA_LIB_PATH := $(CUDA_PATH)/lib64)
72-
export LIBRARY_PATH := $(LIBRARY_PATH):$(CUDA_LIB_PATH)
70+
NVCC_PATH := $(shell which nvcc 2>/dev/null)
71+
ifneq ($(NVCC_PATH),)
72+
$(eval CUDA_PATH := $(shell dirname $$(dirname $$(which nvcc))))
73+
$(eval CUDA_LIB_PATH := $(CUDA_PATH)/lib64)
74+
export LIBRARY_PATH := $(LIBRARY_PATH):$(CUDA_LIB_PATH)
75+
endif
7376
endif
7477

7578
## MAIN BINARIES
@@ -276,7 +279,7 @@ build_lotus?=0
276279
curio_docker_user?=curio
277280
curio_base_image=$(curio_docker_user)/curio-all-in-one:latest-debug
278281
ffi_from_source?=0
279-
lotus_version?=v1.32.1
282+
lotus_version?=v1.32.2
280283

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

cmd/curio/tasks/tasks.go

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

246246
{
247247
// Market tasks
248+
var dm *storage_market.CurioStorageDealMarket
248249
if cfg.Subsystems.EnableDealMarket {
249250
// Main market poller should run on all nodes
250-
dm := storage_market.NewCurioStorageDealMarket(miners, db, cfg, si, full, as)
251+
dm = storage_market.NewCurioStorageDealMarket(miners, db, cfg, si, full, as)
251252
err := dm.StartMarket(ctx)
252253
if err != nil {
253254
return nil, err
@@ -297,7 +298,7 @@ func StartTasks(ctx context.Context, dependencies *deps.Deps, shutdownChan chan
297298
activeTasks = append(activeTasks, ipniTask, indexingTask)
298299

299300
if cfg.HTTP.Enable {
300-
err = cuhttp.StartHTTPServer(ctx, dependencies, &sdeps)
301+
err = cuhttp.StartHTTPServer(ctx, dependencies, &sdeps, dm)
301302
if err != nil {
302303
return nil, xerrors.Errorf("failed to start the HTTP server: %w", err)
303304
}

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)