tools/generate-wire: node_announcement.alias is not an sha256

It's 32 bytes long, but it's just a string.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2017-01-04 14:09:20 +10:30
parent a08a2105ea
commit 326a9c9477
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ class Field(object):
if message == 'node_announcement' and fieldname == 'ipv6':
return ('struct ipv6',16)
if message == 'node_announcement' and fieldname == 'alias':
return ('u8',1)
if fieldname.endswith('features'):
return ('u8',1)