Skip to content

Commit

Permalink
fix(cli): quickfix testnet term (#381)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Hill <[email protected]>
  • Loading branch information
andrewxhill authored Oct 17, 2020
1 parent e6cec18 commit 89b10d2
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 53 deletions.
86 changes: 43 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,47 +19,47 @@ Join us on our [public Slack channel](https://slack.textile.io/) for news, discu

## Table of Contents

* [Table of Contents](#table-of-contents)
* [Security](#security)
* [Background](#background)
* [Install](#install)
* [The Hub](#the-hub)
* [hubd](#hubd)
* [hub](#hub)
* [Buckets](#buckets)
* [buckd](#buckd)
* [buck](#buck)
* [The Buckets Library](#the-buckets-library)
* [Getting Started](#getting-started)
* [The Hub](#the-hub-1)
* [Running Buckets](#running-buckets)
* [Creating a bucket](#creating-a-bucket)
* [Creating a private bucket](#creating-a-private-bucket)
* [Adding files and folders to a bucket](#adding-files-and-folders-to-a-bucket)
* [Recreating an existing bucket](#recreating-an-existing-bucket)
* [Creating a bucket from an existing Cid](#creating-a-bucket-from-an-existing-cid)
* [Exploring bucket contents](#exploring-bucket-contents)
* [Resetting bucket contents](#resetting-bucket-contents)
* [Watching a bucket for changes](#watching-a-bucket-for-changes)
* [Protecting a file with a password](#protecting-a-file-with-a-password)
* [Sharing bucket files and folders](#sharing-bucket-files-and-folders)
* [Creating a Filecoin bucket archive](#creating-a-filecoin-bucket-archive)
* [Multi-writer buckets](#multi-writer-buckets)
* [Deleting a bucket](#deleting-a-bucket)
* [Using the Buckets Library](#using-the-buckets-library)
* [Creating a bucket](#creating-a-bucket-1)
* [Getting an existing bucket](#getting-an-existing-bucket)
* [Pushing local changes](#pushing-local-changes)
* [Pulling remote changes](#pulling-remote-changes)
* [Using the Mail Library](#using-the-mail-library)
* [Creating a mailbox](#creating-a-mailbox)
* [Getting an existing mailbox](#getting-an-existing-mailbox)
* [Sending a message](#sending-a-message)
* [Watching for new messages](#watching-for-new-messages)
* [Developing](#developing)
* [Contributing](#contributing)
* [Changelog](#changelog)
* [License](#license)
- [textile](#textile)
- [Security](#security)
- [Background](#background)
- [Install](#install)
- [The Hub](#the-hub)
- [`hubd`](#hubd)
- [`hub`](#hub)
- [Buckets](#buckets)
- [`buckd`](#buckd)
- [`buck`](#buck)
- [The Buckets Library](#the-buckets-library)
- [Getting Started](#getting-started)
- [The Hub](#the-hub-1)
- [Running Buckets](#running-buckets)
- [Creating a bucket](#creating-a-bucket)
- [Creating a private bucket](#creating-a-private-bucket)
- [Adding files and folders to a bucket](#adding-files-and-folders-to-a-bucket)
- [Recreating an existing bucket](#recreating-an-existing-bucket)
- [Creating a bucket from an existing Cid](#creating-a-bucket-from-an-existing-cid)
- [Exploring bucket contents](#exploring-bucket-contents)
- [Resetting bucket contents](#resetting-bucket-contents)
- [Watching a bucket for changes](#watching-a-bucket-for-changes)
- [Protecting a file with a password](#protecting-a-file-with-a-password)
- [Sharing bucket files and folders](#sharing-bucket-files-and-folders)
- [Creating a Filecoin bucket archive](#creating-a-filecoin-bucket-archive)
- [Multi-writer buckets](#multi-writer-buckets)
- [Deleting a bucket](#deleting-a-bucket)
- [Using the Buckets Library](#using-the-buckets-library)
- [Creating a bucket](#creating-a-bucket-1)
- [Getting an existing bucket](#getting-an-existing-bucket)
- [Pushing local files](#pushing-local-files)
- [Pulling remote changes](#pulling-remote-changes)
- [Using the Mail Library](#using-the-mail-library)
- [Creating a mailbox](#creating-a-mailbox)
- [Getting an existing mailbox](#getting-an-existing-mailbox)
- [Sending a message](#sending-a-message)
- [Watching for new messages](#watching-for-new-messages)
- [Developing](#developing)
- [Contributing](#contributing)
- [Changelog](#changelog)
- [License](#license)

## Security

Expand Down Expand Up @@ -635,11 +635,11 @@ Let's try archiving the bucket from the [Creating a bucket](#creating-a-bucket)

```
buck archive
> Warning! Archives are currently saved on an experimental test network. They may be lost at any time.
> Warning! Archives are Filecoin Mainnet. Use with caution.
? Proceed? [y/N]
```

Please take note of the warning. Archiving should be considered experimental since Filecoin `mainnet` has not yet launched, and Powergate will either be running a `localnet` or `testnet`.
Please take note of the warning. Archiving should be considered experimental since Filecoin `mainnet` has not yet launched, and Powergate will either be running a `localnet` or `mainnet`.

You should see a success message if you proceed.

Expand Down
8 changes: 4 additions & 4 deletions buckets/local/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ var ArchiveStatusTimeout = time.Second * 5

// ArchiveConfig is the desired state of a Cid in the Filecoin network.
type ArchiveConfig struct {
// RepFactor (ignored in Filecoin testnet) indicates the desired amount of active deals
// RepFactor (ignored in Filecoin mainnet) indicates the desired amount of active deals
// with different miners to store the data. While making deals
// the other attributes of FilConfig are considered for miner selection.
RepFactor int
// DealMinDuration indicates the duration to be used when making new deals.
DealMinDuration int64
// ExcludedMiners (ignored in Filecoin testnet) is a set of miner addresses won't be ever be selected
// ExcludedMiners (ignored in Filecoin mainnet) is a set of miner addresses won't be ever be selected
// when making new deals, even if they comply to other filters.
ExcludedMiners []string
// TrustedMiners (ignored in Filecoin testnet) is a set of miner addresses which will be forcibly used
// TrustedMiners (ignored in Filecoin mainnet) is a set of miner addresses which will be forcibly used
// when making new deals. An empty/nil list disables this feature.
TrustedMiners []string
// CountryCodes (ignored in Filecoin testnet) indicates that new deals should select miners on specific
// CountryCodes (ignored in Filecoin mainnet) indicates that new deals should select miners on specific
// countries.
CountryCodes []string
// Renew indicates deal-renewal configuration.
Expand Down
4 changes: 2 additions & 2 deletions cmd/buck/cli/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var archiveCmd = &cobra.Command{
yes, err := c.Flags().GetBool("yes")
cmd.ErrCheck(err)
if !yes {
cmd.Warn("Archives are currently saved on an experimental test network. They may be lost at any time.")
cmd.Warn("Archives are Filecoin Mainnet. Use with caution.")
prompt := promptui.Prompt{
Label: "Proceed",
IsConfirm: true,
Expand All @@ -98,7 +98,7 @@ var archiveCmd = &cobra.Command{
cmd.ErrCheck(err)
reader = file
if !yes {
cmd.Warn("ArchiveConfig properties RepFactor, ExcludedMiners, TrustedMiners and CountryCodes are currently ignored in Filecoin testnet.")
cmd.Warn("ArchiveConfig properties RepFactor, ExcludedMiners, TrustedMiners and CountryCodes are currently ignored in Filecoin mainnet.")
prompt := promptui.Prompt{
Label: "Proceed",
IsConfirm: true,
Expand Down
8 changes: 4 additions & 4 deletions mongodb/bucketarchives.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ type Archive struct {

// ArchiveConfig is the desired state of a Cid in the Filecoin network.
type ArchiveConfig struct {
// RepFactor (ignored in Filecoin testnet) indicates the desired amount of active deals
// RepFactor (ignored in Filecoin mainnet) indicates the desired amount of active deals
// with different miners to store the data. While making deals
// the other attributes of FilConfig are considered for miner selection.
RepFactor int `bson:"rep_factor"`
// DealMinDuration indicates the duration to be used when making new deals.
DealMinDuration int64 `bson:"deal_min_duration"`
// ExcludedMiners (ignored in Filecoin testnet) is a set of miner addresses won't be ever be selected
// ExcludedMiners (ignored in Filecoin mainnet) is a set of miner addresses won't be ever be selected
// when making new deals, even if they comply to other filters.
ExcludedMiners []string `bson:"excluded_miners"`
// TrustedMiners (ignored in Filecoin testnet) is a set of miner addresses which will be forcibly used
// TrustedMiners (ignored in Filecoin mainnet) is a set of miner addresses which will be forcibly used
// when making new deals. An empty/nil list disables this feature.
TrustedMiners []string `bson:"trusted_miners"`
// CountryCodes (ignored in Filecoin testnet) indicates that new deals should select miners on specific
// CountryCodes (ignored in Filecoin mainnet) indicates that new deals should select miners on specific
// countries.
CountryCodes []string `bson:"country_codes"`
// Renew indicates deal-renewal configuration.
Expand Down

0 comments on commit 89b10d2

Please sign in to comment.