status-go/protocol/transport
Andrea Maria Piana 8ba6625df0 Lower PoW for messages
Images are too large to be sent over waku/whisper with the
current PoW (0.002).

This commit lowers the PoW for sending messages to a lower value,
depending on the size.

This means that older clients will not be able to receive messages that
are greater than 50KB (none of the messages we currently send is anywhere close to
that, most of them are less than 1KB).

I would have preferred to set the PoW explicitly for images to be lower,
but it's not trivial as we use `datasync` to send messages and its
interface takes a payload that is to be dispatched and a function to
dispatch, at initialization stage.

This make it difficult (impossible?) to set a different PoW for a
particular message, without changing function signature in datasync
(which is agnostic to the transport used).

So a less cumbersome approach is to just fingerprint on size.
2020-06-01 11:30:04 +02:00
..
waku Lower PoW for messages 2020-06-01 11:30:04 +02:00
whisper fix: close resultsets so we don't leak them (#1809) 2020-05-14 11:51:32 +01:00
envelopes_monitor.go make lint-fix 2020-01-16 13:18:36 +01:00
filter.go Make shhext and protocol work with Waku (#1777) 2020-01-13 20:17:30 +01:00
filters_manager.go Remove protocol and eth-node submodules (#1835) 2020-02-10 12:22:37 +01:00
filters_manager_test.go Fix waku tests & contact ens (#1802) 2020-01-17 13:39:09 +01:00
topic.go Make shhext and protocol work with Waku (#1777) 2020-01-13 20:17:30 +01:00
transport.go Peg clock value to whisper timestamp (#1804) 2020-01-20 17:44:32 +01:00