Browse Source

fix: the tx types for element fee updates were annotated wrong

Fixes the tx type annotation in a few places.
nifty/pset-pre
lisa neigut 5 years ago
committed by Rusty Russell
parent
commit
e623143c9f
  1. 4
      onchaind/onchaind.c

4
onchaind/onchaind.c

@ -2628,7 +2628,7 @@ static void handle_their_cheat(const struct bitcoin_tx *tx,
* fee output. */ * fee output. */
out = new_tracked_output(tx->chainparams, out = new_tracked_output(tx->chainparams,
&outs, txid, tx_blockheight, &outs, txid, tx_blockheight,
OUR_UNILATERAL, i, THEIR_REVOKED_UNILATERAL, i,
amt, amt,
ELEMENTS_FEE, ELEMENTS_FEE,
NULL, NULL, NULL); NULL, NULL, NULL);
@ -2879,7 +2879,7 @@ static void handle_their_unilateral(const struct bitcoin_tx *tx,
* fee output. */ * fee output. */
out = new_tracked_output(tx->chainparams, out = new_tracked_output(tx->chainparams,
&outs, txid, tx_blockheight, &outs, txid, tx_blockheight,
OUR_UNILATERAL, i, THEIR_UNILATERAL, i,
amt, amt,
ELEMENTS_FEE, ELEMENTS_FEE,
NULL, NULL, NULL); NULL, NULL, NULL);

Loading…
Cancel
Save