Few cosmetic tweaks
This commit is contained in:
parent
aa3ba28ea7
commit
e44c7ac8ea
12
README.md
12
README.md
@ -52,6 +52,18 @@ Name: (KingZulo) is now registered to this address (dero1qy3dspltmkakl4gzpfvhc35
|
|||||||
```
|
```
|
||||||
(PS: If anyone want KingZulo I'm kinda willing to give it up)
|
(PS: If anyone want KingZulo I'm kinda willing to give it up)
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Install dependencies and run the script with the following command
|
||||||
|
|
||||||
|
```
|
||||||
|
$ sudo apt install libwww-curl-perl libjson-perl -y
|
||||||
|
$ git clone https://git.mysrv.cloud/MySrv.Cloud/Dero_Name_Service_Cli_Tool.git
|
||||||
|
$ cd Dero_Name_Service_Cli_Tool
|
||||||
|
$ ./dero_ns_cli.pl --help
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## More About Dero
|
## More About Dero
|
||||||
|
|
||||||
|
@ -28,12 +28,12 @@ use Getopt::Long;
|
|||||||
my $name;
|
my $name;
|
||||||
my %options;
|
my %options;
|
||||||
GetOptions(
|
GetOptions(
|
||||||
'daemon-rpc=s' => \$options{'daemon-rpc'},
|
'daemon-rpc=s' => \$options{'daemon-rpc'},
|
||||||
'wallet-rpc=s' => \$options{'wallet-rpc'},
|
'wallet-rpc=s' => \$options{'wallet-rpc'},
|
||||||
'register+' => \$options{'register'},
|
'register+' => \$options{'register'},
|
||||||
'name=s' => \$name,
|
'name=s' => \$name,
|
||||||
'check-list=s' => \$options{'list'},
|
'check-list=s' => \$options{'list'},
|
||||||
'help+' => \$options{'help'},
|
'help+' => \$options{'help'},
|
||||||
);
|
);
|
||||||
|
|
||||||
my $daemon = 'https://dero-node.mysrv.cloud';
|
my $daemon = 'https://dero-node.mysrv.cloud';
|
||||||
@ -138,9 +138,9 @@ if ($options{'register'}) {
|
|||||||
printf "\rName: (%s) is now registered to this address (%s) - Congratulations!\n", $reg_check->{'name'}, $reg_check->{'address'};
|
printf "\rName: (%s) is now registered to this address (%s) - Congratulations!\n", $reg_check->{'name'}, $reg_check->{'address'};
|
||||||
last;
|
last;
|
||||||
} else {
|
} else {
|
||||||
printf "\rWaiting for registered to complete [%d/%d]... ", $count, $max_wait;
|
printf "\rWaiting for registration to complete [%d/%d]... ", $count, $max_wait;
|
||||||
}
|
}
|
||||||
die "Something went wrong, it took too long to register.." if $count > $max_wait;
|
die "Something went wrong, it took too long to register!..\n" if $count > $max_wait;
|
||||||
sleep 1;
|
sleep 1;
|
||||||
$count++;
|
$count++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user