rgb-cln/onchaind
Christian Decker 7283efa5b5 elements: Add amount_asset to support more than just plain satoshis
Currently the only source for amount_asset is the value getter on a tx output,
and we don't hand it too far around (mainly ignoring it if it isn't the
chain's main currency). Eventually we could bubble them up to the wallet, use
them to select outputs or actually support assets in the channels.

Since we don't hand them around too widely I thought it was ok for them to be
pass-by-value rather than having to allocate them and pass them around by
reference. They're just 41 bytes currently so the overhead should be ok.

Signed-off-by: Christian Decker <@cdecker>
2019-10-03 04:32:57 +00:00
..
test elements: Remove global is_elements variable in favor of chainparams 2019-10-03 04:32:57 +00:00
Makefile wire: use common/bigsize routines 2019-07-31 23:25:59 +00:00
onchain_types.h elements: Tell onchaind it may ignore fee outputs 2019-10-03 04:32:57 +00:00
onchain_wire.c onchaind: include htlc id in htlc_stub so we agree on what HTLC we're closing. 2018-10-23 16:55:35 +02:00
onchain_wire.csv elements: Move from a global is_elements to a global chainparams 2019-10-03 04:32:57 +00:00
onchain_wire.h onchaind: include htlc id in htlc_stub so we agree on what HTLC we're closing. 2018-10-23 16:55:35 +02:00
onchaind.c elements: Add amount_asset to support more than just plain satoshis 2019-10-03 04:32:57 +00:00