BasicEconomyTweaks [Early Technical Beta] [OFFLINE - see new beta test - part deux]

With Bbbadnet highlighting some of our bad node detection as… overzealous, and also tipping up an issue with the faucet (and restarting the faucet), we’ve made tweaks to improve pricing economics too.

Nodes will now start ramping up pricing earlier, hopefully to better push up rewards when we need new nodes.

The faucet now also will only output 1SNT as a gift. This might help prevent giant influxes of data for now. (We’ve also added some stiffer rate limiting there, discarding requests if the wallet is busy instead of enqueuing them in an effort to remove potential faucet-land issues.)

Network Details

Node version: 0.105.2
Client version: 0.90.2
Faucet url: 188.166.171.13:8000

We have 50 droplets running a total of 2001 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.


Quickstart

If you already have safeup, you can obtain the client and node binaries:

safeup client --version 0.90.2
safeup node --version 0.105.2

Run a Node

Linux/macOS:

safenode

Windows:

safenode

Check local node’s reward balance

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>"

Connect to the Network as a Client

Linux/macOS:

safe wallet get-faucet 188.166.171.13:8000
safe files upload <directory-path>

Windows:

safe wallet get-faucet 188.166.171.13:8000
safe files upload <directory-path>

To do this with non-default batch-sizes (along with SAFE_PEERS set as above):

safe files upload --batch-size 40 <directory-path> 

40 being the integer value you want to set


Further Information

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 safenode binary.

Obtaining Binaries

We have a tool named safeup which is intended to make it easy to obtain the client, node, and other utility binaries.

Installing Safeup

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.

Installing Binaries

After obtaining safeup, you can install binaries like so:

safeup client # get the latest version of the client
safeup client --version 0.90.2 # get a specific version

safeup node # get the latest version of the node
safeup node --version 0.105.2 # 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.

The 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.

Running a Node

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
safenode

# Windows
safenode

This will output all the logs to the filesystem, with the location of logs being 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.

Connecting as a Client

You can use the safe client binary to connect as a client and upload or download files to/from the network.

Using the Client

You’ll first need to get some Safe Network Tokens:

safe wallet get-faucet 188.166.171.13: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] [NetworkAddress]

Troubleshooting

Cleanup

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.

31 Likes

Pack the wind surfing equipment away @Josh :stuck_out_tongue_winking_eye:

14 Likes

Time to test how much data can be sent to SN for 1 SNT :wink:


No Safe, no wave.

8 Likes

can we get a peer added to the OP for using safenode-manager ?

4 Likes

I milked 5 tokens from the faucet, and will be using barely 1 myself. So if we get faucet problems, you can ask some play money from me.

Actually, I’d like to send some to someone just to see again how it goes. So someone, give me your address!

7 Likes

I uploaded a folder of photos. It seemed to me like stalling after successful upload and in the end gave error:

Error:
   0: The local path "C:\\Users\\topia\\Karjalanruusu_kuvia" is already being tracked with Folder address: a2fcd89ad8fc55adcc8a34b8e6b8792676471494c02637d6dbc52894eb79ef3c87fdbdfa1c8937d6e7fa7c71adae55e9f918f5407a5d08fc34b40be328fbfd619956791e96fb9e25b111abf561fb2e8b

On a repeated upload the same error happens. I’m on a Windows machine.

:white_check_mark:

Solved myself: I guess the upload was succesfull and I just screwed something. Also, the folder cannot be uploaded again. If you want to update a folder, use the command:

 safe folders sync
4 Likes

b2081ffd3612084c0ae171035b72667cbd36ca84be805af724ce9da149773f0ea3e92eda01c7b1fab8059a9368c6e9e6

Please send 1 nan0 it’s enough for my full course meal

1 Like

I get a virus warning on Windows 11, using PowerShell:

safe wallet get-faucet 188.166.171.13:8000

Program ‘safe.exe’ failed to run: Operation did not complete successfully because the file contains a virus or
potentially unwanted softwareAt line:1 char:1

  • safe wallet get-faucet 188.166.171.13:8000

At line:1 char:1

  • safe wallet get-faucet 188.166.171.13:8000
  •   + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
      + FullyQualifiedErrorId : NativeCommandFailed
1 Like

Here you go:

f5ccd0ccd8cc2b99cc9dcc02565f697a0832693137790a4c07b5cc0be3cc68bdcc201aaacc65fbcc38e0ccd5cc88ccb7cc7d778ecc96cc49acccb9cceccc9bcce4ccfccca9cc02c8ccdbcc0fa3cc76793cf8cc17e8cc40c9ccf1cce5cc2e7eafccf6cc10d6ccfaccdeccbfccfeccd5cc2033a1ccf9cc2d7d0b8fccb3ccbccc92cc9acc07deccaecc341f3a232a4489ccb9cc6000dc29abcc96cca8cc2f8dcc37dacc05c2cc63d9cc86cc82cca5cc272c57d2cc4a83cc7405c5cc251f271223cbccb1ccf5cc1d665f94cc8fcc349acccfccc9ccdeccd6cca8cc91cc2362c7cc0f54f9cc84cc9ccc5083cc4229b9cc2526accc4a7be6cc688accbecc64dacc3e96ccc4cc485e1bc7ccdbcccdcc0ad3ccffcca1cc3c5aa2cc799bcc390398ccd1ccedcc6388ccfccc5f81cc12b6cc80ccf0cc6500dcdfcc2c599dcc23cbcc75447bceccbacc0da9cca8ccb5cc7a80cc8bcc19796f275b5e14cccc55bfccbecc7680cc1c9acc040f60f1cc54d0cc80ccc1cc5d264cb4ccaacc2392cc3000dc9391646574707972636e45a981

Was this the first nano transaction on the network?

EDIT: of course not, the data itself has been that cheap…

2 Likes

You can always grab them here.
https://sn-testnet.s3.eu-west-2.amazonaws.com/network-contacts

4 Likes

Can a Node Manager nerd Please post a quickstart for using it on a cloud node before I get to my laptop. :pray:

Including where to get it!

For anyone wanting to get safenode manager (thanks @Josh for the release link)…

UPDATE
First find the release you want from the release directory and get the link to the gzip archive. Then use curl to get it and extract as follows.

curl -OL https://github.com/maidsafe/safe_network/releases/download/sn-node-manager-v0.7.2/safenode-manager--x86_64-unknown-linux-musl.tar.gz
tar -xvf curl -OL safenode-manager--x86_64-unknown-linux-musl.tar

That should give you a file safenode-manager.

I’ll update this if I figure out how to do the rest but don’t want to spend time on this… ACTUALLY I’m gonna leave it and get back to code. If anyone wants to fill in the rest I’ll add it here for others.

4 Likes

About cheap, food got so cheap, because the alternative is us running our AIs with the task to create a replicator…

Thx 4 the meal

3 Likes

This is a known bug that has happened to me before, the interesting thing is that in the morning the safe.exe file was considered by Windows to be a Trojan and by the evening of the same day it was already an executable.

I see that again Win recognises it as a virus.


No Safe, no wave.

2 Likes

To simplify secure path I edited my sudoers

sudo safenode-manager add --count --peer --node-port <range>
sudo safenode-manager start

5 Likes

I’m now seriously considering upgrading to 8 Gbit/s so that my client/node can be useful for the Network. Funny part is my isp bill vs buying eMAID/MAID the latter seems most logic

This upload went super ant quick
“TheNetworkState.mp4” 85113e201e839c11c711eb4f681e51d3232657e06314ab94bba2d69bbedbe3c4

1 Like

More logical but not as much fun :joy:

1 Like

Are you talking about sudoers? the typing was driving me up the wall, that or searching command history which is never as short as you think it would be, then it becomes a case of it must be near may as well keep going :laughing: 350 keystrokes later…

2 Likes

Don’t want to be picky, but he said he wanted to go kitesurfing.

There is nothing that would stop be from a day‘s windsurfing. Kitesurfing? Meh…

1 Like

The boss dragged me to the shops and out for lunch :sob:

2 Likes