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:
Rusty Russell
2016-05-26 15:25:24 +09:30
parent 0ceee86098
commit 311ae9b4d8
2 changed files with 0 additions and 33 deletions

View File

@@ -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
View File

@@ -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 */