-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add net commands and methods * docsgen * fix lint errors. change dtypes.ScoreKeeper * fix lint error. Switch to lotus scorekeeper * fix lint errors * Add Net command to main * refactor: import lotus net implementation instead of copying it * refactor: copy ResourceManager from lotus modules * refactor: lowercase NetCmd Co-authored-by: Dirk McCormick <dirkmdev@gmail.com>
- Loading branch information
Showing
12 changed files
with
629 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ func main() { | |
logCmd, | ||
dagstoreCmd, | ||
piecesCmd, | ||
netCmd, | ||
}, | ||
} | ||
app.Setup() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/filecoin-project/boost/node" | ||
lcli "github.com/filecoin-project/lotus/cli" | ||
"github.com/urfave/cli/v2" | ||
) | ||
|
||
var netCmd = &cli.Command{ | ||
Name: "net", | ||
Usage: "Manage P2P Network", | ||
Before: func(cctx *cli.Context) error { | ||
cctx.App.Metadata["repoType"] = node.Boost | ||
return nil | ||
}, | ||
Subcommands: lcli.NetCmd.Subcommands, | ||
} |
Oops, something went wrong.