elements: Remove global is_elements variable in favor of chainparams

No need to keep duplicate globals.
This commit is contained in:
Christian Decker
2019-09-26 00:42:26 +02:00
committed by Rusty Russell
parent ef7a63d8f8
commit d5f0c08a88
23 changed files with 48 additions and 37 deletions

View File

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