18 Commits

Author SHA1 Message Date
Adam Babik
27e2442271
add request validation for mail sync (#14) 2018-12-11 09:22:16 +01:00
Adam Babik
6e5af097a1
add opcodes to sync messages (#13)
Two opcodes were introduced p2pSyncRequestCode and p2pSyncResponseCode. MailServer interface got extended with SyncMail(*Peer, SyncMailRequest) error.

There are no breaking changes.
2018-12-06 09:33:58 +01:00
Dmitry
96d2199ed5 Send events when mail request is sent or expired 2018-11-28 10:49:39 +02:00
Dmitry
76c2447643 Extend whisper protocol with confirmations and add necessary events 2018-11-26 09:32:41 +02:00
Adam Babik
4cd9bb35e2
Upgrade geth 1.8.17 (#8) 2018-11-12 10:03:57 +01:00
Adam Babik
ca91ec35f6
Support batched messages in p2pMessageCode (#3) 2018-10-16 17:41:10 +02:00
Dmitry
8ff11fbbc0 Apply time source patch with changes in tests 2018-10-01 11:10:07 +03:00
Adam Babik
739fa07809 whisper: fix loop in expire() (#17532) 2018-08-29 13:56:13 +03:00
Vlad
31f7f7af81 whisper: topics replaced by bloom filters 2018-03-01 16:04:09 +01:00
Vlad
d550d9390c whsiper: refactoring 2018-02-27 23:38:20 +01:00
Guillaume Ballet
5e49d935c3 whisper: get wnode to work with v6 (#16051)
The bulk of the issue was to adapt to the new requirement
that a v6 filter has to either contain a symmertric key or
an asymmetric one.

This commits revert one of the fixes that I made to remove
a linter warning: unexporting NewSentMessage. This is not
really a problem as I have a cleanup in the pipe that will
solve this issue.
2018-02-10 15:35:32 +02:00
gluk256
05ab15d98c whisper: change the whisper message format so as to add the payload size (#15870)
* whisper: message format changed

* whisper: tests fixed

* whisper: style fixes

* whisper: fixed names, fixed failing tests

* whisper: fix merge issue in #15870

Occured while using the github online merge tool. Lesson learned.

* whisper: fix a gofmt error for #15870
2018-01-30 10:55:08 +02:00
Guillaume Ballet
188304c519 whisper: remove linter warnings (#15972)
* whisper: fixes warnings from the code linter

* whisper: more non-API-breaking changes

The remaining lint errors are because of auto-generated
files and one is because an exported function has a non-
exported return type. Changing this would break the API,
and will be part of another commit for easier reversal.

* whisper: un-export NewSentMessage to please the linter

This is an API change, which is why it's in its own commit.
This change was initiated after the linter complained that
the returned type wasn't exported. I chose to un-export
the function instead of exporting the type, because that
type is an implementation detail that I would like to
change in the near future to make the code more
readable and with an increased coverage.

* whisper: update gencodec output after upgrading it to new lint standards
2018-01-26 13:45:10 +02:00
gluk256
b45285c479 whisper/whisperv6: implement pow/bloom exchange protocol (#15802)
This is the main feature of v6.
2018-01-12 12:11:22 +01:00
gluk256
78926a3c9a whisper/whisperv6: PoW requirement (#15701)
New Whisper-level message introduced (PoW requirement),
corresponding logic added, plus some tests.
2017-12-21 15:17:27 +01:00
Zach
f664e3e9d0 all: use gometalinter.v2, fix new gosimple issues (#15650) 2017-12-12 19:05:47 +01:00
Guillaume Ballet
21084335dd whisper/whisperv6: remove Version from the envelope (#15621) 2017-12-08 16:08:56 +01:00
gluk256
5772f810f7 whisper/whisperv6: initial commit (clone of v5) (#15324) 2017-11-03 21:29:49 +01:00