mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-10 06:16:25 +00:00
634408ff2c
`news` has a few open issues that are not present in `nim-websock`: 1. There is a 1 second delay between each MB of sent data. 2. Cancelling an ongoing `send` makes the entire WebSocket unusable. 3. Control packets do not have priority over ongoing message frames. Using `news`, there are quite a few of these messages in Geth: ``` Previously seen beacon client is offline. Please ensure it is operational to follow the chain! ``` It may take quite some time to reconnect when this happens. Using `nim-websock`, this message still occurs because `eth1_monitor` reconnects the EL connection when no new blocks occurred for 5 minutes, but reconnecting is quick and the message is rarer.
12 lines
307 B
Nim
12 lines
307 B
Nim
# Use only `secp256k1` public key cryptography as an identity in LibP2P.
|
|
-d:"libp2p_pki_schemes=secp256k1"
|
|
|
|
-d:"json_rpc_websocket_package=websock"
|
|
|
|
-d:chronosStrictException
|
|
--styleCheck:usages
|
|
--styleCheck:hint
|
|
--hint[XDeclaredButNotUsed]:off
|
|
--hint[ConvFromXtoItselfNotNeeded]:off
|
|
--hint[Processing]:off
|