1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-22 06:21:42 +01:00

Set MAX_BUFFERED to 1,000,000 (#948)

Note that this doesn't mean that we will buffer 1M objects in memory:
those are just pointers to (mostly) network announcements that already
exist in our routing table.

Routing table has recently gone over 100K elements (nodes,
announcements, updates) and this causes the connection to be closed when
peer requests a full initial sync.
This commit is contained in:
Pierre-Marie Padiou 2019-04-19 14:18:57 +02:00 committed by GitHub
parent 84c0fab433
commit 44778a72c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -274,7 +274,7 @@ object TransportHandler {
def props[T: ClassTag](keyPair: KeyPair, rs: Option[ByteVector], connection: ActorRef, codec: Codec[T]): Props = Props(new TransportHandler(keyPair, rs, connection, codec))
val MAX_BUFFERED = 100000L
val MAX_BUFFERED = 1000000L
// see BOLT #8
// this prefix is prepended to all Noise messages sent during the handshake phase