Another week, another wee testnet. We’re looking to verify various changes we’ve worked on since the last…
Most notably the pricing curve has changed, it’s now much more granular (a new price at each step) and stays cheaper for longer.
We also have various client improvements to reduce memory when working with larger files, and offer more control during uploads. As well as the total
concurrency limit, which you can set with
-c 10 (e.g., to allow for 10 concurrent uploads/queries), we have a
--batch-size 10 argument, which defines how many chunks are paid for an uploaded together (this should have more impact on larger files… hopefully improving the success rate there). More examples of that below.
- How does the client tolerance (currently 50% over the asking price) hold up?
- How are client up/download performing? (How do
batch-sizeaffect errors here?)
- Check register payments are working smoothly
It should be noted that while the client will currently repay if a PUT failed… it does not only pay the difference as yet. That’s still to come.
Node version: 0.90.14
Client version: 0.81.44
Faucet url: 220.127.116.11:8000
"/ip4/18.104.22.168/tcp/42445/p2p/12D3KooWH9KeGXY6xYxp9aPy2WNR48XWo4ce17i4UdzmiR2nWi86" "/ip4/22.214.171.124/tcp/35321/p2p/12D3KooWHo1u5VZ4KxMiHiVxy5xH2j5AgYvk18M5J5bJNZDKN4y6" "/ip4/126.96.36.199/tcp/44513/p2p/12D3KooWBCEhQiahMb6zexVaJVquZZWyui1Dzz44uHLUXpx9uU3Q" "/ip4/188.8.131.52/tcp/40253/p2p/12D3KooWB2sxFRaSV77jvmXiqwVFFF6bAXr1V7L3rmbVEkHGJq8c" "/ip4/184.108.40.206/tcp/44133/p2p/12D3KooWKre2WdD2ScmJ1j4Cxh1dRFsTze1WYYkMqc8tQn6CtM7H" "/ip4/220.127.116.11/tcp/37671/p2p/12D3KooWQVWBExLhXkmoQzARcGMv96fa7nj1tiFai4boQUKh5j8G" "/ip4/18.104.22.168/tcp/39227/p2p/12D3KooWDppSnhhtZJdagspz6Vu7AmTR5Vc1zdN29eMu1vHS3azx" "/ip4/22.214.171.124/tcp/37469/p2p/12D3KooWDN4sZAUuc4WqUj2LHo3i4mPWvTt22PWA4jXfQ1wmgkV4" "/ip4/126.96.36.199/tcp/44331/p2p/12D3KooWDAAviAzBfSQBTRoXuQZw9ge1PLDY24ar8EsYFXuvjirV" "/ip4/188.8.131.52/tcp/33119/p2p/12D3KooWRUd5BmFbqBBzRWb9uvwy1dWBdhzk2BGV7g5kN1sLjyzb"] ...
We have 2001 droplets running a total of 100 nodes. One droplet has 2vcpu and 4GB of memory.
If you are a regular user, see the ‘quickstart’ section for getting up and running.
If you are a first-time user, or would like more information, see the ‘further information’ section.
If you already have
safeup, you can obtain the client and node binaries:
safeup client --version 0.81.44 safeup node --version 0.90.14
export SAFE_PEERS="/ip4/184.108.40.206/tcp/43953/p2p/12D3KooWFP9PfPoDeAtQU5Y9akqmciABu4AJqPsiA3WQTgDe5XHn" SN_LOG=all safenode
$env:SAFE_PEERS="/ip4/220.127.116.11/tcp/43953/p2p/12D3KooWFP9PfPoDeAtQU5Y9akqmciABu4AJqPsiA3WQTgDe5XHn" $env:SN_LOG = "all"; safenode
Your local node’s peer id will be printed to the terminal on startup with an example command). (You can also retrieve this from the node directory.)
safe wallet balance --peer-id="<local-node-peer-id>"
export SAFE_PEERS="/ip4/18.104.22.168/tcp/43953/p2p/12D3KooWFP9PfPoDeAtQU5Y9akqmciABu4AJqPsiA3WQTgDe5XHn" safe wallet get-faucet 22.214.171.124:8000 safe files upload <directory-path>
$env:SAFE_PEERS = "/ip4/126.96.36.199/tcp/43953/p2p/12D3KooWFP9PfPoDeAtQU5Y9akqmciABu4AJqPsiA3WQTgDe5XHn" safe wallet get-faucet 188.8.131.52:8000 safe files upload <directory-path>
To do this with non-default
batch-sizes (along with
SAFE_PEERS set as above):
safe files upload -c 10 --batch-size 40 <directory-path>
You can participate in the testnet either by connecting as a client or running your own node.
Connecting as a client requires the
safe client binary; running a node requires the
We have a tool named
safeup which is intended to make it easy to obtain the client, node, and other utility binaries.
On Linux/macOS, run the following command in your terminal:
curl -sSL https://raw.githubusercontent.com/maidsafe/safeup/main/install.sh | bash
On Windows, run the following command in a Powershell session (be careful to use Powershell, not cmd.exe):
iex (Invoke-RestMethod -Uri "https://raw.githubusercontent.com/maidsafe/safeup/main/install.ps1")
On either platform, you may need to restart your shell session for
safeup to become available.
safeup, you can install binaries like so:
safeup client # get the latest version of the client safeup client --version 0.81.44 # get a specific version safeup node # get the latest version of the node safeup node --version 0.90.14 # get a specific version safeup update # update all installed components to latest versions
When participating in our testnets, it is recommended to use a specific version. In our project we release a new version of the binaries every time we merge new code. This happens frequently, so over the lifetime of a testnet, many new releases will probably occur. So for participating in this particular testnet, you may not want the latest version.
The binaries are installed to
~/.local/bin on Linux and macOS, and on Windows they go to
C:\Users\<username>\safe. Windows doesn’t really have a standard location for binaries that doesn’t require elevated privileges.
safeup tool will modify the
PATH variable on Linux/macOS, or the user
Path variable on Windows. The effect of this is that the installed binaries will then become available in your shell without having to refer to them with their full paths. However, if you’re installing for the first time, you may need to start a new shell session for this change to be picked up.
You can participate in the testnet by running your own node. At the moment, you may not be successful if you’re running the node from your home machine. This is a situation we are working on. If you run from a cloud provider like Digital Ocean or AWS, you should be able to participate.
You can run the node process like so:
# Linux/macOS SN_LOG=all safenode # Windows $env:SN_LOG = "all"; safenode
This will output all the logs in the terminal.
Sometimes it will be preferable to output the logs to file. You can do this by running the node like so:
# Linux/macOS SN_LOG=all safenode --log-output-dest data-dir # Windows $env:SN_LOG = "all"; safenode --log-output-dest data-dir
The location of
data-dir is platform specific:
# Linux ~/.local/share/safe/node/<peer id>/logs # macOS /Users/<username>/Library/Application Support/safe/node/<peer id>/logs # Windows C:\Users\<username>\AppData\Roaming\safe\node\<peer-id>\logs
If you wish, you can also provide your own path:
# Linux/macOS SN_LOG=all safenode --log-output-dest <path> # Windows $env:SN_LOG = "all"; safenode --log-output-dest <path>
The advantage of using the predefined
data-dir location is you can run multiple nodes on one machine without having to specify your own unique path for each node and manage that overhead yourself.
You can use the
safe client binary to connect as a client and upload or download files to/from the network.
To connect, you must provide another peer, in the form of a multi address. You can find one in the ‘Network Details’ section at the top.
It is recommended to set the peer using the environment variable
SAFE_PEERS. You can set this variable once and it will apply for the duration of your shell session:
# Linux/macOS export SAFE_PEERS="/ip4/184.108.40.206/tcp/43953/p2p/12D3KooWFP9PfPoDeAtQU5Y9akqmciABu4AJqPsiA3WQTgDe5XHn" # Windows $env:SAFE_PEERS = "/ip4/220.127.116.11/tcp/43953/p2p/12D3KooWFP9PfPoDeAtQU5Y9akqmciABu4AJqPsiA3WQTgDe5XHn"
NOTE: If you close and/or start a new shell session, you will be required to redefine this environment variable in the new session.
As an alternative to the environment variable, it’s also possible to use the
safe --peer="/ip4/18.104.22.168/tcp/43953/p2p/12D3KooWFP9PfPoDeAtQU5Y9akqmciABu4AJqPsiA3WQTgDe5XHn" ...
However, this requires specifying the peer with each command.
You’ll first need to get some Safe Network Tokens:
safe wallet get-faucet 22.214.171.124:8000
You can now proceed to use the client, by, e.g., uploading files:
safe files upload <directory-path>
To download that same content:
safe files download
This will download the files to the default location, which is platform specific:
# Linux ~/.local/share/safe/client/downloaded_files # macOS /Users/<username>/Library/Application Support/safe/client/downloaded_files # Windows C:\Users\<username>\AppData\Roaming\safe\client\downloaded_files
To download to a particular file or directory:
safe file download [directory/filename] [XORURL]
If you’ve used previous versions of the network before and you find problems when running commands, you may want to consider clearing out previous data (worthless DBCs from previous runs, old logs, old keys, etc.).
# Linux rm -rf ~/.local/share/safe # macOS rm -rf ~/Library/Application\ Support/safe # Windows rmdir /s C:\Users\<username>\AppData\Roaming\safe
If you encounter a problem running any of our binaries on Windows, it’s possible you need the Visual C++ Redistributable installed.