Jeffrey Wilcke
94435fbc73
whisper: fixed broadcast race
...
Whisper's expire and broadcast loops happen in two separate go routines.
Whenever an envelope is being expired it's removed from the set of
envelopes and it looses all information about the envelope, including
the "known hash". After the envelope has been removed it can be
re-accepted by a broadcasting peer putting back the envelope in the set
of envelopes. Since the envelope broadcast loop is separate of the
expire loop expired messages may be broadcast to other peer, resulting
in messages **never** being dropped.
This PR includes an expire check before adding new messages to the set
of envelopes.
2015-11-25 12:10:47 +01:00
Péter Szilágyi
a1b9f24305
whisper: fix datarace in expiration test
2015-11-05 13:36:25 +02:00
Felix Lange
cf6d3a90a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
2015-07-23 18:35:11 +02:00
Felix Lange
6c3d851763
all: update license headers to distiguish GPL/LGPL
...
All code outside of cmd/ is licensed as LGPL. The headers
now reflect this by calling the whole work "the go-ethereum library".
2015-07-22 18:51:45 +02:00
Felix Lange
72939fa459
all: update license information
2015-07-07 14:12:44 +02:00
Péter Szilágyi
17baf46ee5
ui/qt/qwhisper, whisper, xeth: polish topic filter, fix wildcards
2015-04-28 10:49:04 +03:00
Péter Szilágyi
2d8bbab6f6
rpc, ui/qt/qwhisper, whisper, xeth: introduce complex topic filters
2015-04-28 10:49:04 +03:00
Péter Szilágyi
9cb90b5904
whisper: remove dead code, rename a few constants
2015-04-16 11:20:01 +03:00
Péter Szilágyi
f53eb01b40
whisper: use async handshakes to handle blocking peers
2015-04-15 13:01:22 +03:00
Péter Szilágyi
49b0698fa2
whisper: remove some unneeded testing complexity
2015-04-15 12:50:10 +03:00
Péter Szilágyi
c8e0ddb790
whisper: global message expiration tests, polishes
2015-04-15 10:50:31 +03:00
Péter Szilágyi
ec62c6f014
whisper: mock tests to use simulated peers
2015-04-14 19:00:57 +03:00
Péter Szilágyi
4a94682be3
whisper: shorten constants to TTL and PoW
2015-04-14 15:16:02 +03:00
Péter Szilágyi
4e11ce0cdc
whisper: fix anonymous broadcast drop, add broadcast tests
2015-04-14 12:12:47 +03:00
Péter Szilágyi
a166fc8054
whisper: push work in progress for bug report
2015-04-13 16:19:34 +03:00
Péter Szilágyi
1fe2469359
whisper: start adding integration tests
2015-04-13 13:15:01 +03:00
Péter Szilágyi
582125ed37
whisper: polish the Envelope a bit, prep for tests.
2015-04-10 16:52:01 +03:00
Péter Szilágyi
a1854781c2
whisper: polish the messages, fix some bugs, tests
...
Bugs fixed:
- Use randomly generated flags as the spec required.
- During envelope opening check the first bit only for signature.
2015-04-10 15:53:21 +03:00
obscuren
3a64b03e88
API changed to use Pubkey only. Reflected that change in the rest of the api
2015-02-05 15:00:59 -08:00
obscuren
28c10af79f
fixed url bug in browser
2015-01-20 18:42:29 +01:00
obscuren
eac0355883
Implemented watching using filter package
...
* Added filters / watches
* Removed event dep
2014-12-12 22:23:42 +01:00