mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
coins: update API surface for creating coin movements
Canonicalize the signature for the 'tag-type' of coin moves by unique constructor/method calls. Suggested-By: @rustyrussell
This commit is contained in:
committed by
Rusty Russell
parent
aab9893661
commit
de065580f6
@@ -341,9 +341,9 @@ static void onchain_add_utxo(struct channel *channel, const u8 *msg)
|
||||
outpointfilter_add(channel->peer->ld->wallet->owned_outpoints, &u->txid, u->outnum);
|
||||
wallet_add_utxo(channel->peer->ld->wallet, u, p2wpkh);
|
||||
|
||||
mvt = new_chain_coin_mvt_sat(msg, "wallet", &u->txid, &u->txid,
|
||||
u->outnum, NULL, blockheight,
|
||||
DEPOSIT, u->amount, true, BTC);
|
||||
mvt = new_coin_deposit_sat(msg, "wallet", &u->txid,
|
||||
u->outnum, blockheight,
|
||||
u->amount, BTC);
|
||||
notify_chain_mvt(channel->peer->ld, mvt);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user