UNL hosts default array

This commit is contained in:
Wietse Wind
2023-10-29 02:29:11 +02:00
parent 575efccb02
commit 833c54f5aa
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ const onValidation = async ({
/**
* Only proceed if the pubkey is on preferred UNL & reported by node with expected network ID
*/
const validationHostInUnl = (unlData?.hosts || []).indexOf(validation.validation_public_key) > -1 && networkId === unlData.networkid
const validationHostInUnl = unlData.hosts.indexOf(validation.validation_public_key) > -1 && networkId === unlData.networkid
const storeAllValidations = process.env?.ONLYUNLVALIDATIONS
const validationLedgerIndex = Number(validation.ledger_index)

View File

@@ -6,7 +6,7 @@ const unlCacheTimeSec = 120
class UNL {
data = {}
hosts = {}
hosts = []
networkid = 0
updated = null
fetching = false