mirror of
https://github.com/Xahau/Validation-Ledger-Tx-Store-to-xPOP.git
synced 2025-12-06 17:27:57 +00:00
Fix event handler stacking leak
This commit is contained in:
@@ -35,6 +35,7 @@ connections
|
|||||||
// processed in order (sorted on sequence) and emitted in order
|
// processed in order (sorted on sequence) and emitted in order
|
||||||
// to clients to prevent async tx sequence problems.
|
// to clients to prevent async tx sequence problems.
|
||||||
] })
|
] })
|
||||||
|
}
|
||||||
|
|
||||||
c.on("validation", validation => onValidation({
|
c.on("validation", validation => onValidation({
|
||||||
connectionUrl: c.getState()?.server?.uri,
|
connectionUrl: c.getState()?.server?.uri,
|
||||||
@@ -48,7 +49,6 @@ connections
|
|||||||
ledger,
|
ledger,
|
||||||
connection: c,
|
connection: c,
|
||||||
}))
|
}))
|
||||||
}
|
|
||||||
|
|
||||||
c.on('online', () => subscribe())
|
c.on('online', () => subscribe())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user