Skip to content

Commit 746995e

Browse files
authored
fix: fix broken InsecurePoStValidation build constant (#12918)
Fix broken `InsecurePoStValidation` build constant Prior to changes here, `InsecurePoStValidation` in `debug` was a noop.
1 parent 686ab2d commit 746995e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

build/testing_flags.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !debug
2+
13
package build
24

35
var InsecurePoStValidation = false

build/testing_flags_debug.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//go:build debug
2+
3+
package build
4+
5+
import "github.com/filecoin-project/lotus/build/buildconstants"
6+
7+
var InsecurePoStValidation = buildconstants.InsecurePoStValidation

0 commit comments

Comments
 (0)