Investigate possible EventEmitter memory leak #3569
Labels
prio-high
Resolve issues as soon as possible.
scope-logging
Issue about logs: hygiene, format issues, improvements.
Describe the bug
While trying to run lodestar on local testnet following the documentation here, I ran into complications which led to me to create this issue here.
Part of what I noticed, while trying to get Lodestar running in the logs was this error:
On a quick investigation, the issue seems to be coming from this part of the code.
Two promises are being raced. One of the promises
this.waitForBlockSlot(slot)
, sets event listeners. As can be seen here.On my local, it seems the promise with the event listener never wins this race, and never is the one that gets resolved, hence the listener is never removed, hence leads to the the warning message that pops up in the log.
Expected behavior
Preferably not have the EventEmitter memory leak warning.
Hence:
The text was updated successfully, but these errors were encountered: