Conversation
make networking logs appear in simulator
Add filter for dependency generated logs
I will look into it and see if there is anything that can be done. The main issue is that the LH simulator revolves around a |
Got it. If you have time, please point me to the more relevant parts in the LH code, and I can try to think about something similar to what I had in mind for the Peer Manager. |
|
Yeah, i think in general we want to avoid code duplication. However the simulator, I think can be quite dependent on the thing its simulating. As its mainly used for CI and testing, I think its fine to just have duplicate code, I'd personally be more concerned with core components. I.e I still think we merge the new Anchor peer manager into Lighthouse at some point. (Maybe that would help with the simulator also). |
|
Mentioned in summary |
|
Closing for now |
Issue Addressed
N/A
Proposed Changes
This PR extends on the simulator introduced in lighthouse to add support for anchor.
Note
The tests wont currently pass since some of the node functionality still does not work, but once everything is working all the tests should be drop in. There is also an issue where we will stack overflow a tokio worker after running for a bit. This also occurs in the lighthouse simulator. The culprit is the
LocalBeaconClientsimply growing too large over the course of execution mixed with some deep async calls. This would require a significant refactor to address, so simply configuring the stack size before running is the way to go.RUST_MIN_STACK=8388608 cargo run --bin integration basic-sim