Store xPOPs

This commit is contained in:
Wietse Wind
2023-10-05 02:05:25 +02:00
parent c0b824aa2b
commit 1599aaa65e
3 changed files with 19 additions and 22 deletions

View File

@@ -51,13 +51,11 @@ const onTransaction = async ({
* generate an xPOP.
*/
setTimeout(async () => {
console.log(
await xpop({
ledgerIndex: transaction.ledger_index,
networkId,
txHash: tx.hash,
})
)
await xpop({
ledgerIndex: transaction.ledger_index,
networkId,
txHash: tx.hash,
})
}, 500)
// ^^ To check: is this enough? If e.g. retrieving the ledger info
// would take longer this may not be enough. Best solution: