mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-29 10:44:21 +01:00
wire: understand struct preimage, don't treat it as sha256.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -14,6 +14,7 @@ type2size = {
|
||||
'struct short_channel_id': 8,
|
||||
'struct ipv6': 16,
|
||||
'secp256k1_ecdsa_signature': 64,
|
||||
'struct preimage': 32,
|
||||
'struct pubkey': 33,
|
||||
'struct sha256': 32,
|
||||
'u64': 8,
|
||||
@@ -57,6 +58,7 @@ typemap = {
|
||||
('update_fail_htlc', 'reason'): FieldType('u8'),
|
||||
('node_announcement', 'alias'): FieldType('u8'),
|
||||
('update_add_htlc', 'onion_routing_packet'): FieldType('u8'),
|
||||
('update_fulfill_htlc', 'payment_preimage'): FieldType('struct preimage'),
|
||||
('error', 'data'): FieldType('u8'),
|
||||
('shutdown', 'scriptpubkey'): FieldType('u8'),
|
||||
('node_announcement', 'rgb_color'): FieldType('u8'),
|
||||
|
||||
Reference in New Issue
Block a user