feerate: keep feerates separately for each side.

When we support changing them, they can be different during the transition.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-11-21 14:14:35 +10:30
committed by Christian Decker
parent 24b4326b30
commit b836b452dc
11 changed files with 50 additions and 32 deletions

View File

@@ -259,7 +259,7 @@ static bool test_channel_crud(const tal_t *ctx)
mempat(sig, sizeof(*sig));
mempat(&last_commit, sizeof(last_commit));
pubkey_from_der(tal_hexdata(w, "02a1633cafcc01ebfb6d78e39f687a1f0995c62fc95f51ead10a02ee0be551b5dc", 66), 33, &pk);
ci.feerate_per_kw = 31337;
ci.feerate_per_kw[LOCAL] = ci.feerate_per_kw[REMOTE] = 31337;
mempat(&p.id, sizeof(p.id));
c1.peer = &p;
p.id = pk;