mirror of
https://github.com/Xahau/Validation-Ledger-Tx-Store-to-xPOP.git
synced 2025-11-04 12:25:48 +00:00
Fix race condition UNL data
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user