adds: new db fields and struct variables

- Intrduce DB update `channel` values: `feerate_base` and `feerate_ppm`
- Make fist use of now context realted DB migration
- Add `struct channel` members of the same name
- Use struct values instead of config when commiting new channels
This commit is contained in:
Michael Schmoock
2019-02-21 01:01:33 +01:00
committed by Rusty Russell
parent 1853b399b0
commit 1043df28be
6 changed files with 42 additions and 9 deletions

View File

@@ -223,7 +223,9 @@ wallet_commit_channel(struct lightningd *ld,
true,
&uc->local_basepoints,
&uc->local_funding_pubkey,
NULL);
NULL,
ld->config.fee_base,
ld->config.fee_per_satoshi);
/* Now we finally put it in the database. */
wallet_channel_insert(ld->wallet, channel);