mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 08:04:26 +01:00
Remove unused parameters peer and sig in db_send_remote_commit(struct peer *peer, ..., struct signature sig)
This commit is contained in:
committed by
Christian Decker
parent
7a5ce1db7d
commit
31fed45d10
@@ -266,10 +266,8 @@ static void db_recv_local_commit(struct database *db,
|
|||||||
db->local = *ci;
|
db->local = *ci;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void db_send_remote_commit(struct peer *peer,
|
static void db_send_remote_commit(struct database *db,
|
||||||
struct database *db,
|
const struct commit_info *ci)
|
||||||
const struct commit_info *ci,
|
|
||||||
struct signature sig)
|
|
||||||
{
|
{
|
||||||
if (ci->prev)
|
if (ci->prev)
|
||||||
db->remote_prev = *ci->prev;
|
db->remote_prev = *ci->prev;
|
||||||
@@ -666,7 +664,7 @@ static void send_commit(struct peer *peer)
|
|||||||
|
|
||||||
peer->remote = new_commit_info(peer, peer->remote);
|
peer->remote = new_commit_info(peer, peer->remote);
|
||||||
peer->remote->counterparty_signed = true;
|
peer->remote->counterparty_signed = true;
|
||||||
db_send_remote_commit(peer, &peer->db, peer->remote, sig);
|
db_send_remote_commit(&peer->db, peer->remote);
|
||||||
|
|
||||||
/* Tell other side about commit and result (it should agree!) */
|
/* Tell other side about commit and result (it should agree!) */
|
||||||
xmit_commit(peer, sig);
|
xmit_commit(peer, sig);
|
||||||
|
|||||||
Reference in New Issue
Block a user