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,
|
vl,
|
||||||
json,
|
json,
|
||||||
binary,
|
binary,
|
||||||
validations,
|
_allValidations,
|
||||||
tx
|
tx
|
||||||
] = await Promise.all([
|
] = await Promise.all([
|
||||||
catjson(relativeStorDir + '/vl.json'),
|
catjson(relativeStorDir + '/vl.json'),
|
||||||
@@ -61,6 +61,9 @@ const xpopGenerate = async ({
|
|||||||
catjson(relativeStorDir + '/tx_' + txHash + '.json'),
|
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 xpopJson = await xpop({ vl, ledger: { json, binary, }, validations, tx, })
|
||||||
const xpopFilename = 'xpop_' + txHash + '.json'
|
const xpopFilename = 'xpop_' + txHash + '.json'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user