mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-22 23:34:21 +01:00
tools/generate-wire: use amount_msat / amount_sat for peer protocol.
Basically we tell it that every field ending in '_msat' is a struct amount_msat, and 'satoshis' is an amount_sat. The exceptions are channel_update's fee_base_msat which is a u32, and final_incorrect_htlc_amount's incoming_htlc_amt which is also a 'struct amount_msat'. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -180,4 +180,6 @@ PRINTWIRE_STRUCT_TYPE_TO_STRING(pubkey);
|
||||
PRINTWIRE_STRUCT_TYPE_TO_STRING(sha256);
|
||||
PRINTWIRE_STRUCT_TYPE_TO_STRING(secret);
|
||||
PRINTWIRE_STRUCT_TYPE_TO_STRING(short_channel_id);
|
||||
PRINTWIRE_STRUCT_TYPE_TO_STRING(amount_sat);
|
||||
PRINTWIRE_STRUCT_TYPE_TO_STRING(amount_msat);
|
||||
PRINTWIRE_TYPE_TO_STRING(secp256k1_ecdsa_signature, secp256k1_ecdsa_signature);
|
||||
|
||||
Reference in New Issue
Block a user