Browse Source

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>
ppa-0.6.1
Rusty Russell 9 years ago
parent
commit
311ae9b4d8
  1. 21
      daemon/peer.c
  2. 12
      state.h

21
daemon/peer.c

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

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

Loading…
Cancel
Save