mirror of
https://github.com/Xahau/Validation-Ledger-Tx-Store-to-xPOP.git
synced 2025-11-04 12:25:48 +00:00
UNL hosts default array
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ const unlCacheTimeSec = 120
|
||||
|
||||
class UNL {
|
||||
data = {}
|
||||
hosts = {}
|
||||
hosts = []
|
||||
networkid = 0
|
||||
updated = null
|
||||
fetching = false
|
||||
|
||||
Reference in New Issue
Block a user