Keep hyperspace-related code

This commit is contained in:
Geoff Stuart
2023-01-20 18:23:59 -05:00
parent 3fec6df05a
commit d0fa0cbbad
7 changed files with 31 additions and 12 deletions
+3
View File
@@ -84,6 +84,9 @@ butterflynet: build-devnets
interopnet: GOFLAGS+=-tags=interopnet
interopnet: build-devnets
hyperspacenet: GOFLAGS+=-tags=hyperspacenet
hyperspacenet: build-devnets
lotus: $(BUILD_DEPS)
rm -f lotus
$(GOCC) build $(GOFLAGS) -o lotus ./cmd/lotus
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/bash
NETWORKS=(devnet mainnet caterpillarnet butterflynet testing testing-fake-proofs calibrationnet)
NETWORKS=(devnet mainnet caterpillarnet butterflynet testing testing-fake-proofs calibrationnet hyperspace)
set -e
+2 -2
View File
@@ -1,5 +1,5 @@
//go:build !debug && !2k && !testground && !calibnet && !butterflynet && !interopnet
// +build !debug,!2k,!testground,!calibnet,!butterflynet,!interopnet
//go:build !debug && !2k && !testground && !calibnet && !butterflynet && !interopnet && !hyperspacenet
// +build !debug,!2k,!testground,!calibnet,!butterflynet,!interopnet,!hyperspacenet
package build
View File
+10 -7
View File
@@ -6,13 +6,14 @@ var CurrentCommit string
var BuildType int
const (
BuildDefault = 0
BuildMainnet = 0x1
Build2k = 0x2
BuildDebug = 0x3
BuildCalibnet = 0x4
BuildInteropnet = 0x5
BuildButterflynet = 0x7
BuildDefault = 0
BuildMainnet = 0x1
Build2k = 0x2
BuildDebug = 0x3
BuildCalibnet = 0x4
BuildInteropnet = 0x5
BuildButterflynet = 0x7
BuildHyperspacenet = 0x9
)
func BuildTypeString() string {
@@ -31,6 +32,8 @@ func BuildTypeString() string {
return "+interopnet"
case BuildButterflynet:
return "+butterflynet"
case BuildHyperspacenet:
return "+hyperspacenet"
default:
return "+huh?"
}
+1 -2
View File
@@ -8,8 +8,6 @@ import (
"fmt"
"os"
"github.com/filecoin-project/lotus/chain/actors/builtin"
"github.com/urfave/cli/v2"
cbg "github.com/whyrusleeping/cbor-gen"
"golang.org/x/xerrors"
@@ -23,6 +21,7 @@ import (
"github.com/filecoin-project/lotus/api/v0api"
"github.com/filecoin-project/lotus/chain/actors"
"github.com/filecoin-project/lotus/chain/actors/builtin"
"github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/chain/types/ethtypes"
)
+14
View File
@@ -1741,6 +1741,7 @@ COMMANDS:
network-version Returns the network version
miner-proving-deadline Retrieve information about a given miner's proving deadline
actor-cids Returns the built-in actor bundle manifest ID & system actor cids
blockhash Get the tipset CID - eth blockhash
help, h Shows a list of commands or help for one command
OPTIONS:
@@ -2064,6 +2065,19 @@ OPTIONS:
```
### lotus state blockhash
```
NAME:
lotus state blockhash - Get the tipset CID - eth blockhash
USAGE:
lotus state blockhash [command options] [arguments...]
OPTIONS:
--help, -h show help (default: false)
```
## lotus chain
```
NAME: