check name length

This commit is contained in:
Lennart Hansen 2022-04-21 16:50:52 +01:00
parent 02208ca037
commit 11264a6861

View File

@ -219,6 +219,11 @@ sub check_name {
my $name = shift;
if (length $name < 6 or length $name >= 64) {
print "Name ($name) not compatible, need to longer than 6 charaters and shorter than 64\n";
return;
}
# Check if name is registered
# curl http://127.0.0.1:40402/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"nametoaddress","params":{"name":"TESTUSERNAME" }}' -H 'Content-Type: application/json'