mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
daemon: remove unused functions.
These were left over from when the state machine handled onchain transactions. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -1802,13 +1802,6 @@ const struct bitcoin_tx *bitcoin_spend_ours(struct peer *peer)
|
|||||||
return tx;
|
return tx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create a bitcoin steal tx (to steal all their commit's outputs) */
|
|
||||||
const struct bitcoin_tx *bitcoin_steal(const struct peer *peer,
|
|
||||||
struct commit_info *ci)
|
|
||||||
{
|
|
||||||
FIXME_STUB(peer);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Sign and return our commit tx */
|
/* Sign and return our commit tx */
|
||||||
const struct bitcoin_tx *bitcoin_commit(struct peer *peer)
|
const struct bitcoin_tx *bitcoin_commit(struct peer *peer)
|
||||||
{
|
{
|
||||||
@@ -1831,20 +1824,6 @@ const struct bitcoin_tx *bitcoin_commit(struct peer *peer)
|
|||||||
return peer->us.commit->tx;
|
return peer->us.commit->tx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create a HTLC refund collection */
|
|
||||||
const struct bitcoin_tx *bitcoin_htlc_timeout(const struct peer *peer,
|
|
||||||
const struct htlc_onchain *htlc_onchain)
|
|
||||||
{
|
|
||||||
FIXME_STUB(peer);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Create a HTLC collection */
|
|
||||||
const struct bitcoin_tx *bitcoin_htlc_spend(const struct peer *peer,
|
|
||||||
const struct htlc_onchain *htlc_onchain)
|
|
||||||
{
|
|
||||||
FIXME_STUB(peer);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Now we can create anchor tx. */
|
/* Now we can create anchor tx. */
|
||||||
static void got_feerate(struct lightningd_state *dstate,
|
static void got_feerate(struct lightningd_state *dstate,
|
||||||
u64 rate, struct peer *peer)
|
u64 rate, struct peer *peer)
|
||||||
|
|||||||
12
state.h
12
state.h
@@ -175,19 +175,7 @@ const struct bitcoin_tx *bitcoin_close(struct peer *peer);
|
|||||||
/* Create a bitcoin spend tx (to spend our commit's outputs) */
|
/* Create a bitcoin spend tx (to spend our commit's outputs) */
|
||||||
const struct bitcoin_tx *bitcoin_spend_ours(struct peer *peer);
|
const struct bitcoin_tx *bitcoin_spend_ours(struct peer *peer);
|
||||||
|
|
||||||
/* Create a bitcoin steal tx (to steal all their commit's outputs) */
|
|
||||||
const struct bitcoin_tx *bitcoin_steal(const struct peer *peer,
|
|
||||||
struct commit_info *ci);
|
|
||||||
|
|
||||||
/* Create our commit tx */
|
/* Create our commit tx */
|
||||||
const struct bitcoin_tx *bitcoin_commit(struct peer *peer);
|
const struct bitcoin_tx *bitcoin_commit(struct peer *peer);
|
||||||
|
|
||||||
/* Create a HTLC refund collection */
|
|
||||||
const struct bitcoin_tx *bitcoin_htlc_timeout(const struct peer *peer,
|
|
||||||
const struct htlc_onchain *htlc_onchain);
|
|
||||||
|
|
||||||
/* Create a HTLC collection */
|
|
||||||
const struct bitcoin_tx *bitcoin_htlc_spend(const struct peer *peer,
|
|
||||||
const struct htlc_onchain *htlc_onchain);
|
|
||||||
|
|
||||||
#endif /* LIGHTNING_STATE_H */
|
#endif /* LIGHTNING_STATE_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user