ilp-connector icon indicating copy to clipboard operation
ilp-connector copied to clipboard

add hello message

Open michielbdejong opened this issue 8 years ago • 4 comments

when you start up a connector, it would be good if it notifies its neighbors ('hello, I'm awake, send me all your routes please'), so that you don't have to wait 30 seconds before an ilp-kit starts working.

michielbdejong avatar May 10 '17 17:05 michielbdejong

The connector broadcasts its local routes on startup, why does it need a separate "hello" message?

sentientwaffle avatar May 10 '17 17:05 sentientwaffle

so that it also receives asap

michielbdejong avatar May 10 '17 18:05 michielbdejong

If a connector receives a new route, it broadcasts immediately (https://github.com/interledgerjs/ilp-connector/blob/d2e600bd990c72425728753c27d3e094b9a30009/src/lib/message-router.js#L145-L152).

sentientwaffle avatar May 10 '17 18:05 sentientwaffle

ok, so then this would not be necessary, provided the downtime was long enough to make previously broadcasted routes expire, and provided that your peer correctly noticed you have been down and that you missed out on their last few broadcasts.

michielbdejong avatar May 10 '17 21:05 michielbdejong