Debug build mode
This commit is contained in:
parent
43a5172944
commit
e7efb6099a
5
Makefile
5
Makefile
@ -60,9 +60,12 @@ CLEAN+=build/.update-modules
|
||||
deps: $(BUILD_DEPS)
|
||||
.PHONY: deps
|
||||
|
||||
debug: GOFLAGS=-tags=debug
|
||||
debug: lotus lotus-storage-miner
|
||||
|
||||
lotus: $(BUILD_DEPS)
|
||||
rm -f lotus
|
||||
go build -o lotus ./cmd/lotus
|
||||
go build $(GOFLAGS) -o lotus ./cmd/lotus
|
||||
go run github.com/GeertJohan/go.rice/rice append --exec lotus -i ./build
|
||||
|
||||
.PHONY: lotus
|
||||
|
9
build/params_debug.go
Normal file
9
build/params_debug.go
Normal file
@ -0,0 +1,9 @@
|
||||
// +build debug
|
||||
|
||||
package build
|
||||
|
||||
// Seconds
|
||||
const BlockDelay = 2
|
||||
|
||||
// Blocks
|
||||
const ProvingPeriodDuration uint64 = 40
|
9
build/params_devnet.go
Normal file
9
build/params_devnet.go
Normal file
@ -0,0 +1,9 @@
|
||||
// +build !debug
|
||||
|
||||
package build
|
||||
|
||||
// Seconds
|
||||
const BlockDelay = 12
|
||||
|
||||
// Blocks
|
||||
const ProvingPeriodDuration uint64 = 300
|
@ -36,9 +36,6 @@ const PaymentChannelClosingDelay = 6 * 60 * 2 // six hours
|
||||
// /////
|
||||
// Consensus / Network
|
||||
|
||||
// Seconds
|
||||
const BlockDelay = 12
|
||||
|
||||
// Seconds
|
||||
const AllowableClockDrift = BlockDelay * 2
|
||||
|
||||
@ -59,9 +56,6 @@ const WRatioDen = 2
|
||||
// /////
|
||||
// Proofs
|
||||
|
||||
// Blocks
|
||||
const ProvingPeriodDuration uint64 = 300
|
||||
|
||||
// PoStChallangeTime sets the window in which post computation should happen
|
||||
// Blocks
|
||||
const PoStChallangeTime = ProvingPeriodDuration - 6
|
Loading…
Reference in New Issue
Block a user