mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
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:
committed by
Rusty Russell
parent
1853b399b0
commit
1043df28be
@@ -171,7 +171,9 @@ struct channel *new_channel(struct peer *peer, u64 dbid,
|
||||
bool connected,
|
||||
const struct basepoints *local_basepoints,
|
||||
const struct pubkey *local_funding_pubkey,
|
||||
const struct pubkey *future_per_commitment_point)
|
||||
const struct pubkey *future_per_commitment_point,
|
||||
u32 feerate_base,
|
||||
u32 feerate_ppm)
|
||||
{
|
||||
struct channel *channel = tal(peer->ld, struct channel);
|
||||
|
||||
@@ -234,6 +236,8 @@ struct channel *new_channel(struct peer *peer, u64 dbid,
|
||||
channel->local_funding_pubkey = *local_funding_pubkey;
|
||||
channel->future_per_commitment_point
|
||||
= tal_steal(channel, future_per_commitment_point);
|
||||
channel->feerate_base = feerate_base;
|
||||
channel->feerate_ppm = feerate_ppm;
|
||||
|
||||
list_add_tail(&peer->channels, &channel->list);
|
||||
tal_add_destructor(channel, destroy_channel);
|
||||
|
||||
Reference in New Issue
Block a user