mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
state: make bitcoin_commit() take a non-const peer.
We have to sign the commit at this stage, so easiest if peer isn't const so we can sign it in-place. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -894,8 +894,7 @@ const struct bitcoin_tx *bitcoin_steal(const tal_t *ctx,
|
||||
return bitcoin_tx("steal");
|
||||
}
|
||||
|
||||
const struct bitcoin_tx *bitcoin_commit(const tal_t *ctx,
|
||||
const struct peer *peer)
|
||||
const struct bitcoin_tx *bitcoin_commit(const tal_t *ctx, struct peer *peer)
|
||||
{
|
||||
return bitcoin_tx("our commit");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user