dual_open: neaten spacing for macro

This commit is contained in:
niftynei 2020-12-01 11:33:16 -06:00 committed by Christian Decker
parent 55bbdf1866
commit d98bd39d60
1 changed files with 10 additions and 9 deletions

View File

@ -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,