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

@@ -352,8 +352,8 @@ void peer_start_channeld(struct channel *channel,
&channel->channel_info.remote_per_commit,
&channel->channel_info.old_remote_per_commit,
channel->funder,
cfg->fee_base,
cfg->fee_per_satoshi,
channel->feerate_base,
channel->feerate_ppm,
channel->our_msat,
&channel->local_basepoints,
&channel->local_funding_pubkey,