8ba6625df0
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. |
||
---|---|---|
.. | ||
waku | ||
whisper | ||
envelopes_monitor.go | ||
filter.go | ||
filters_manager.go | ||
filters_manager_test.go | ||
topic.go | ||
transport.go |