@ -936,13 +936,9 @@ static void json_transaction_details(struct json_stream *response,
# if EXPERIMENTAL_FEATURES
# if EXPERIMENTAL_FEATURES
if ( tx - > annotation . type ! = 0 )
if ( tx - > annotation . type ! = 0 )
json_add_txtypes ( response , " type " , tx - > annotation . type ) ;
json_add_txtypes ( response , " type " , tx - > annotation . type ) ;
else
json_add_null ( response , " type " ) ;
if ( tx - > annotation . channel . u64 ! = 0 )
if ( tx - > annotation . channel . u64 ! = 0 )
json_add_short_channel_id ( response , " channel " , & tx - > annotation . channel ) ;
json_add_short_channel_id ( response , " channel " , & tx - > annotation . channel ) ;
else
json_add_null ( response , " channel " ) ;
# endif
# endif
json_add_u32 ( response , " locktime " , wtx - > locktime ) ;
json_add_u32 ( response , " locktime " , wtx - > locktime ) ;
json_add_u32 ( response , " version " , wtx - > version ) ;
json_add_u32 ( response , " version " , wtx - > version ) ;
@ -959,12 +955,8 @@ static void json_transaction_details(struct json_stream *response,
const char * txtype = txtype_to_string ( ann - > type ) ;
const char * txtype = txtype_to_string ( ann - > type ) ;
if ( txtype ! = NULL )
if ( txtype ! = NULL )
json_add_string ( response , " type " , txtype ) ;
json_add_string ( response , " type " , txtype ) ;
else
json_add_null ( response , " type " ) ;
if ( ann - > channel . u64 ! = 0 )
if ( ann - > channel . u64 ! = 0 )
json_add_short_channel_id ( response , " channel " , & ann - > channel ) ;
json_add_short_channel_id ( response , " channel " , & ann - > channel ) ;
else
json_add_null ( response , " channel " ) ;
# endif
# endif
json_object_end ( response ) ;
json_object_end ( response ) ;
@ -993,13 +985,9 @@ static void json_transaction_details(struct json_stream *response,
const char * txtype = txtype_to_string ( ann - > type ) ;
const char * txtype = txtype_to_string ( ann - > type ) ;
if ( txtype ! = NULL )
if ( txtype ! = NULL )
json_add_string ( response , " type " , txtype ) ;
json_add_string ( response , " type " , txtype ) ;
else
json_add_null ( response , " type " ) ;
if ( ann - > channel . u64 ! = 0 )
if ( ann - > channel . u64 ! = 0 )
json_add_short_channel_id ( response , " channel " , & ann - > channel ) ;
json_add_short_channel_id ( response , " channel " , & ann - > channel ) ;
else
json_add_null ( response , " channel " ) ;
# endif
# endif
json_add_hex ( response , " scriptPubKey " , out - > script , out - > script_len ) ;
json_add_hex ( response , " scriptPubKey " , out - > script , out - > script_len ) ;