mirror of
https://github.com/Xahau/Validation-Ledger-Tx-Store-to-xPOP.git
synced 2025-11-19 19:25:52 +00:00
Only generate xPOP with validations from UNL{
This commit is contained in:
@@ -51,7 +51,7 @@ const xpopGenerate = async ({
|
||||
vl,
|
||||
json,
|
||||
binary,
|
||||
validations,
|
||||
_allValidations,
|
||||
tx
|
||||
] = await Promise.all([
|
||||
catjson(relativeStorDir + '/vl.json'),
|
||||
@@ -61,6 +61,9 @@ const xpopGenerate = async ({
|
||||
catjson(relativeStorDir + '/tx_' + txHash + '.json'),
|
||||
])
|
||||
|
||||
const unlValidators = Object.keys(vl?.unl || {})
|
||||
const validations = _allValidations.filter(v => unlValidators.indexOf(v.validation_public_key) > -1)
|
||||
|
||||
const xpopJson = await xpop({ vl, ledger: { json, binary, }, validations, tx, })
|
||||
const xpopFilename = 'xpop_' + txHash + '.json'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user