lightningd: append (as much as we can) version into default name if DEVELOPER=1

This helps for bug reporting, where we may need to diagnose the other
end.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-02-22 20:30:33 +10:30
committed by Christian Decker
parent 655ae90e5e
commit 85f1a9b825
2 changed files with 20 additions and 6 deletions

View File

@@ -1763,13 +1763,13 @@ class LightningDTests(BaseLightningDTests):
# Might not have seen other node-announce yet.
# TODO(cdecker) Can't check these without DEVELOPER=1, re-enable after we get alias and color into getinfo
if DEVELOPER:
assert n1['alias'] == 'JUNIORBEAM'
assert n1['alias'].startswith('JUNIORBEAM')
assert n1['color'] == '0266e4'
if 'alias' not in n2:
assert 'color' not in n2
assert 'addresses' not in n2
else:
assert n2['alias'] == 'SILENTARTIST'
assert n2['alias'].startswith('SILENTARTIST')
assert n2['color'] == '022d22'
assert [c['active'] for c in l1.rpc.listchannels()['channels']] == [True, True]