openethereum/sync/src
Yurii Rashkovskii 18f555464e Problem: AttachedProtocols don't get registered (#7610)
I was investigating issues I am having with Whisper support. I've
enabled Whisper on a custom test network and inserted traces into
Whisper handler implementation (Network<T> and NetworkProtocolHandler
for Network<T>) and I noticed that the handler was never invoked.

After further research on this matter, I found out that
AttachedProtocol's register function does nothing:
https://github.com/paritytech/parity/blob/master/sync/src/api.rs#L172
but there was an implementation originally:
99075ad#diff-5212acb6bcea60e9804ba7b50f6fe6ec and it did the actual
expected logic of registering the protocol in the NetworkService.

However, as of 16d84f8#diff-5212acb6bcea60e9804ba7b50f6fe6ec ("finished
removing ipc") this implementation is gone and only the no-op function
is left.

Which leads me to a conclusion that in fact Whisper's handler never gets
registered in the service and therefore two nodes won't communicate
using it.

Solution: Resurrect original non-empty `AttachedProtocols.register`
implementation

Resolves #7566
2018-01-19 17:33:49 +01:00
..
light_sync dissolve util (#7460) 2018-01-10 15:35:18 +03:00
tests Extract some parts of miner from ethcore. (#7353) 2018-01-11 17:49:10 +01:00
api.rs Problem: AttachedProtocols don't get registered (#7610) 2018-01-19 17:33:49 +01:00
block_sync.rs Fix Temporarily Invalid blocks handling (#7613) 2018-01-19 10:38:59 +01:00
blocks.rs dissolve util (#7460) 2018-01-10 15:35:18 +03:00
chain.rs Extract some parts of miner from ethcore. (#7353) 2018-01-11 17:49:10 +01:00
lib.rs Extract some parts of miner from ethcore. (#7353) 2018-01-11 17:49:10 +01:00
snapshot.rs dissolve util (#7460) 2018-01-10 15:35:18 +03:00
sync_io.rs use error-chain in ethcore-network 2017-11-13 16:48:58 +01:00
transactions_stats.rs dissolve util (#7460) 2018-01-10 15:35:18 +03:00