Check if we can initialize the PeerPool earlier
See original GitHub issueWhat is wrong?
This is a follow up to the discussion @pipermerriam and I had here.
Currently the PeerPool
isn’t available until some other async tasks are resolved. This issue serves as a reminder to check whether the PeerPool
could be created synchronously earlier.
How can it be fixed
A possible idea would be to create the PeerPool
early on without the dependencies that first need to be resolved asynchronously and then as a second step, once these dependencies are resolved, call some initialization API on the PeerPool
. Before that, the PeerPool
would already exist but would reside in some sort of bootstrapping
mode until that API is called.
Not sure, if I like that tbh. ¯_(ツ)_/¯
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Minimal testnet for sharding · Issue #419 · ethereum/py-evm · GitHub
From what I can tell the reader/writer pair can then be used to initialize a Peer instance. What I'm not sure of is...
Read more >ethereum/py-evm - Gitter
Is it possible to initialize PyEVM with a different GENESIS_GAS_LIMIT? I'm using PyEVM for some contract testing with web3.py and I'm finding that...
Read more >Configuring and Managing External Modems [Support] - Cisco
This section describes how to determine and issue the correct initialization string for your modem and how to configure your modem with it....
Read more >IPFS CLI Setup | Documentation - Media Network
Before using IPFS for the first time, you'll need to initialize the repository with the ipfs init command: If you are running on...
Read more >BIG-IP Service Provider: SIP Administration - F5 Networks
Create deny listeners to drop media packets received before the callee ... All virtuals that needs to work together as one router-instance ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
ISTM that the problem here is the fact that
Server.peer_pool
only gets set inServer._run()
and not inServer.__init__()
, as it should. IIUC we do that because of some (far from ideal) server or sharding tests. If we fix those tests we could then initiate aPeerPool
and assign it toServer.peer_pool
inServer.__init__()
, as I think we should doSolved problem. Closing.