status-go/protocol/datasync
Andrea Maria Piana 75e0809f50 Split datasync messages in batches
When sending messages in quick succession, it might be that multiple
messages are batched together in datasync, resulting in a single large
payload.
This commit changes the behavior so that we can pass a max-message-size
and we split the message in batches before sending.

A more elegant way would be to split at the transport layer (i.e
waku/whisper), but that would be incompatible with older client.

We can still do that eventually to support larger messages.
2020-11-05 12:45:29 +01:00
..
peer Remove protocol and eth-node submodules (#1835) 2020-02-10 12:22:37 +01:00
datasync.go Remove protocol and eth-node submodules (#1835) 2020-02-10 12:22:37 +01:00
transport.go Split datasync messages in batches 2020-11-05 12:45:29 +01:00
transport_test.go Split datasync messages in batches 2020-11-05 12:45:29 +01:00
utils.go Use goimports instead of gofmt 2020-01-06 10:17:23 +01:00