Felix Lange
3a5bdef962
whisper: deflake Test*MessageExpiration
...
These tests have become a common annoyance on CI. Fix them by allowing
messages with expiration == now into the cache and delaying the check
for expired message handling slightly.
9 years ago
Péter Szilágyi
1e806c4c77
cmd, common, core, eth, node, rpc, tests, whisper, xeth: use protocol stacks
9 years ago
Jeffrey Wilcke
5f0a4416db
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.
9 years ago
Péter Szilágyi
60e0abb595
whisper: fix datarace in expiration test
9 years ago
Felix Lange
bfbcfbe4a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a
.
9 years ago
Felix Lange
3f047be5aa
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".
9 years ago
Felix Lange
ea54283b30
all: update license information
10 years ago
Péter Szilágyi
db615a85ec
ui/qt/qwhisper, whisper, xeth: polish topic filter, fix wildcards
10 years ago
Péter Szilágyi
ae4bfc3cfb
rpc, ui/qt/qwhisper, whisper, xeth: introduce complex topic filters
10 years ago
Péter Szilágyi
ee6531c5ff
whisper: remove dead code, rename a few constants
10 years ago
Péter Szilágyi
6ceb253f74
whisper: use async handshakes to handle blocking peers
10 years ago
Péter Szilágyi
46ea193a49
whisper: remove some unneeded testing complexity
10 years ago
Péter Szilágyi
bcf41797ca
whisper: global message expiration tests, polishes
10 years ago
Péter Szilágyi
4fb7ab5d09
whisper: mock tests to use simulated peers
10 years ago
Péter Szilágyi
f6efdd8aad
whisper: shorten constants to TTL and PoW
10 years ago
Péter Szilágyi
5205b2f19b
whisper: fix anonymous broadcast drop, add broadcast tests
10 years ago
Péter Szilágyi
cb707ba50c
whisper: push work in progress for bug report
10 years ago
Péter Szilágyi
89358d25a4
whisper: start adding integration tests
10 years ago
Péter Szilágyi
0e4f21fc37
whisper: polish the Envelope a bit, prep for tests.
10 years ago
Péter Szilágyi
7d8ce53eca
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.
10 years ago
obscuren
e40c1c62ce
API changed to use Pubkey only. Reflected that change in the rest of the api
10 years ago
obscuren
87f50659db
fixed url bug in browser
10 years ago
obscuren
a17a1f9208
Implemented watching using filter package
...
* Added filters / watches
* Removed event dep
10 years ago