mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-05 23:24:21 +01:00
elements: Remove global is_elements variable in favor of chainparams
No need to keep duplicate globals.
This commit is contained in:
committed by
Rusty Russell
parent
ef7a63d8f8
commit
d5f0c08a88
@@ -43,7 +43,7 @@ static inline struct amount_sat commit_tx_base_fee(u32 feerate_per_kw,
|
||||
*/
|
||||
weight += 172 * num_untrimmed_htlcs;
|
||||
|
||||
if (is_elements) {
|
||||
if (chainparams->is_elements) {
|
||||
/* Each transaction has surjection and rangeproof (both empty
|
||||
* for us as long as we use unblinded L-BTC transactions). */
|
||||
weight += 2 * 4;
|
||||
|
||||
Reference in New Issue
Block a user