Browse Source

dual_open: neaten spacing for macro

ppa
niftynei 4 years ago
committed by Christian Decker
parent
commit
d98bd39d60
  1. 19
      lightningd/dual_open_control.c

19
lightningd/dual_open_control.c

@ -306,15 +306,16 @@ hook_extract_amount(struct subd *dualopend,
return true;
}
#define CHECK_CHANGES(set, dir) \
do { \
for (size_t i = 0; i < tal_count(set); i++) { \
ok = psbt_get_serial_id(&set[i].dir.unknowns, &serial_id); \
assert(ok); \
if (serial_id % 2 != opener_side) \
return true; \
} \
} while (false) \
#define CHECK_CHANGES(set, dir) \
do { \
for (size_t i = 0; i < tal_count(set); i++) { \
ok = psbt_get_serial_id(&set[i].dir.unknowns, \
&serial_id); \
assert(ok); \
if (serial_id % 2 != opener_side) \
return true; \
} \
} while (false)
static bool psbt_side_contribs_changed(struct wally_psbt *orig,
struct wally_psbt *new,

Loading…
Cancel
Save