Skip to content

Commit

Permalink
dns for testnet 19 (#451)
Browse files Browse the repository at this point in the history
* dns for testnet 19

* testet19
  • Loading branch information
SebastienValla authored Feb 7, 2023
1 parent 1e70106 commit 0678667
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions int/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func parseNetworkFlag(massaNodeServerPtr *string) {
switch *massaNodeServerPtr {
case "TESTNET":
*massaNodeServerPtr = "https://test.massa.net/api/v2"
// testnet18
dnsAddress = "A13Ten7uRWQrLHYfve4NXg13aiWxMYWMPM2dWfbVBEB2w7eYC1J"
// testnet19
dnsAddress = "A129ULhQzqNfhK69wEoZTpBS49QReuA7Py4AU5TPRYP88ERH4T5a"
case "LABNET":
*massaNodeServerPtr = "https://labnet.massa.net/api/v2"
dnsAddress = "A12RgLPuRQaVTue2CtPws6deXUfUnk6nfveZS9bedyzoNS8WyYtg"
Expand Down
8 changes: 5 additions & 3 deletions int/api/websites/all.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const (
dateFormat = "2006-01-02"
metaKey = "META"
ownedPrefix = "owned"
ownerKey = "owner"
blackListKey = "blackList"
secondsToMilliCoeff = 1000
)
Expand Down Expand Up @@ -84,10 +85,11 @@ func Registry(client *node.Client) ([]*models.Registry, error) {
}

/*
The dns SC has 3 different kinds of key :
The dns SC has 4 differents kinds of key :
-the website names
-keys owned concatenated with the owner's address
-a key blackList
-a owner key
we only want to keep the website names keys.
*/
func filterEntriesToDisplay(client *node.Client) ([][]byte, error) {
Expand All @@ -108,8 +110,8 @@ func filterEntriesToDisplay(client *node.Client) ([][]byte, error) {
keyListToRemove = strings.Split(convert.BytesToString(blackListedWebsites.CandidateValue), ",")
}

// we add the key blackList to the list of key to be removed
keyListToRemove = append(keyListToRemove, blackListKey)
// we add the keys blackList and ownerKey to the list of key to be removed
keyListToRemove = append(keyListToRemove, blackListKey, ownerKey)

// we encode the list as a slice of byteArray
keyListToRemoveAsArrayOfByteArray := convert.StringArrayToArrayOfByteArray(keyListToRemove)
Expand Down

0 comments on commit 0678667

Please sign in to comment.