Class NameRegistry

Implementation of NameRegistryAPI using associative arrays

class NameRegistry
  : NameRegistryAPI ;

Constructors

NameDescription
this (realm, config, ledger, cache_db, taskman, network, testing)

Fields

NameTypeDescription
config RegistryConfig
log LoggerLogger instance

Methods

NameDescription
answer_seed (q, reply, _) Answer seed record with well distributed validator nodes constructed on every accepted block
answerQuestions (query, peer, sender, tcp) Accepts a DNS message and returns an answer to it.
findZone (name, matches) Find zone in registry
getFlashNode (public_key) Implementation of NameRegistryAPI.getFlashNode
getValidator (public_key) Implementation of NameRegistryAPI.getValidator
getValidatorInternal (key, dg) Internal endpoint, mimics getValidator but forward the query if needed
onAcceptedBlock (_param_0, validators_changed) Callback for block creation
postFlashNode (data, sig, channel) Implementation of NameRegistryAPI.postFlashNode
postValidator (data, sig) Implementation of NameRegistryAPI.postValidator
registerValidator (data, sig) Similar to postValidator, but does not perform signature verification
validatorsAddresses () Get all network addresses of all validators
ensureValidPayload (payload, previous)