Among 2 chunks, found 0 already existed in network, uploaded the leftover 2 chunks in 33 seconds
Payment Details *
Made payment of 0.000000930 for 2 chunks
Made payment of 0.000000164 for royalties fees
But other files that also had errors still continue to have them.
Uploading 2 chunks
⠴ [00:01:03] [----------------------------------------] 0/2 Retrying failed chunks 2 …
Unverified file “vlc-3.0.17.3-intel64.dmg”, suggest to re-upload again.
safe register get 807170c40a479f0457cb0c2d85dc9fda084562e31df43a667f72bbaedcc654f58394fc07181bceef649351a86c66c4efb1e408a106f1b74f08a4a4eb33c99c95d65b5a86cd077e095cf33dd8dc561b05
You should be able to get the register, and the entry is an address, that points to a text file , that contains names and addresses to a few public files that you can download.
If you upload some more files to be public, you can edit the text file, upload it, and update the register.
Now we have a list of public files inside the testnet. If there is a better way to make this, just do it. This was me just haphazardly trying something.
Nice to see you chaps and chapesses wringing the guts out of this QuicNet.
Hard to keep up with all these messages as I wander from tourist attraction to beerstop in this charming $european_city.
Keep it up. Very proud of you all. Let there be no edge case unpoked
Just kidding, family can wait. @happybeing, can you try:
safe register get -n FILES
and for editing
safe register edit -n FILES
(I created the register with that name, but I thought the name is only applied locally and the address could be just shared. Now I suppose using the name would somehow mean it is publicly editable, but I don’t really know…)
Yes, the help says “if you are the owner” for -n so as expected:
$ safe register get -n FILES
Logging to directory: "/home/blim/.local/share/safe/client/logs/log_2024-01-31_16-52-17"
Built with git version: a15b141 / main / a15b141
Instantiating a SAFE client...
Trying to fetch the bootstrap peers from https://sn-testnet.s3.eu-west-2.amazonaws.com/network-contacts
Connecting to the network with 43 peers
🔗 Connected to the Network Trying to retrieve Register 'FILES' at 807170(22d09c(00100010)..)
Did not retrieve Register 'FILES' at 807170(22d09c(00100010)..) from all nodes in the close group! Protocol error Register not found: 807170(22d09c(00100010)..).
Error:
0: Protocol error Register not found: 807170(22d09c(00100010)..).
1: Register not found: 807170(22d09c(00100010)..)
What you tried would be a global DNS, so well worth a go!
safe register get 75d14c80124d2519c5541df7e5f9ace27be322b8c62049dadc0ea4214c255f588394fc07181bceef649351a86c66c4efb1e408a106f1b74f08a4a4eb33c99c95d65b5a86cd077e095cf33dd8dc561b05
(New register, created with public flag as per these instructions:)
6. In the file "register.rs":
* Imported the `Permissions` struct from the `sn_registers` module.
* Added a new command line option `-p` or `--public` to create the register with public write access.
* Updated the `create_register` function to accept the `public` parameter and use it to determine the permissions of the register.
* Updated the `create_and_pay_for_register` function call to include the `perms` parameter.
* Print the address of the created register at the end.
I managed to edit the register from my Windows machine. I updated the file list with a couple of spaces, uploaded it and put the address in the register with the edit command.
Bingo - I’ve updated your register with an edited version of ‘list.txt’. I changed the format slightly:
$ safe register edit 75d14c80124d2519c5541df7e5f9ace27be322b8c62049dadc0ea4214c255f588394fc07181bceef649351a86c66c4efb1e408a106f1b74f08a4a4eb33c99c95d65b5a86cd077e095cf33dd8dc561b05 47a7f28e7b02a303ebb22dd6c9a04ef6caafff01364a79f6051d690d37571bf9
Logging to directory: "/home/blah/.local/share/safe/client/logs/log_2024-01-31_17-28-30"
Built with git version: a15b141 / main / a15b141
Instantiating a SAFE client...
Trying to fetch the bootstrap peers from https://sn-testnet.s3.eu-west-2.amazonaws.com/network-contacts
Connecting to the network with 43 peers
🔗 Connected to the Network Trying to retrieve Register from 75d14c(08eb67(00001000)..)
Successfully retrieved Register at 75d14c80124d2519c5541df7e5f9ace27be322b8c62049dadc0ea4214c255f588394fc07181bceef649351a86c66c4efb1e408a106f1b74f08a4a4eb33c99c95d65b5a86cd077e095cf33dd8dc561b05
Editing Register at 75d14c80124d2519c5541df7e5f9ace27be322b8c62049dadc0ea4214c255f588394fc07181bceef649351a86c66c4efb1e408a106f1b74f08a4a4eb33c99c95d65b5a86cd077e095cf33dd8dc561b05 with: 47a7f28e7b02a303ebb22dd6c9a04ef6caafff01364a79f6051d690d37571bf9
Haha, might do, but this feels so clumsy, that I’m a bit waiting someone else coming and showing how it actually can be done much easier, reliable etc. I just wanted to see that it is possible.
For example now it is only on good faith that the new file is actually a new version of the list and not something completely else.
search: gets register, offers list of indexed files with filtering on a string, and offers to download a) one by choosing from the list, or b) all matching files
Or could be scripted in Python (@riddim) or node CLI etc.
its absolutely inspiring to see how everybody here is pulling together for the SafeNetwork, please keep at it!
feels like we are very close to this thing taking off