-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
It looks like @niklasad1 signed our Contributor License Agreement. 👍 Many thanks, Parity Technologies CLA Bot |
Nice. /cc @gballet FYI Needs docs once merged. |
whisper/cli/src/main.rs
Outdated
|
||
Options: | ||
--whisper-pool-size SIZE Specify Whisper pool size [default: 10]. | ||
-p, --port PORT Specify which port to use [default: 8545]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe clarify that this is the RPC port, not the devp2p port
except for the small grumble, LGTM. |
523a7c3
to
bf45f82
Compare
I noticed a very interesting bug BTW if you run: $ whisper-cli --port=24``` (i.e, a privileged port requires root access) The error is not always propagated I guess it has wait for all other resources to released which may not happen that could be annoying for the user who may think that So I lean towards using |
I think we should use proper error handling; this failure is likely due to other bugs in the whisper, network, or RPC implementation and we should fix those rather than working around them. |
* Introduced an AtomicBool flag in FilterManager to cancel the `Decryption Worker Thread` * Added some very basic test to faulty arguments
I think it is good to go now, but I had to introduce an additional variable to Alternately we could just skip joining threads and terminate! |
Yep, also an option. Either is an improvement over deadlock :) |
Hey,
This is an attempt to close #6138
EDIT:
I removed the tests for because it more or less requires duplication of the existing tests in
rpc
andwhisper
because these are private I can't just use them directly.It's alot of work re-implement (copy-paste) them so I don't think it is worth the effort. But maybe a couple of CLI arguments tests and some
rough
test that jsonrpc at least works!Thoughts?