bitcoin/short_channel_id: pass by copy everywhere.
It's a u64, we should pass by copy. This is a big sweeping change, but mainly mechanical (change one, compile, fix breakage, repeat). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -52,7 +52,7 @@ struct short_channel_id *decode_short_ids(const tal_t *ctx, const u8 *encoded)
|
||||
scids = tal_arr(ctx, struct short_channel_id, 0);
|
||||
while (max) {
|
||||
struct short_channel_id scid;
|
||||
fromwire_short_channel_id(&encoded, &max, &scid);
|
||||
scid = fromwire_short_channel_id(&encoded, &max);
|
||||
tal_arr_expand(&scids, scid);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user