From 94c1f1eaa12682701eaec469804e800a4c3d3546 Mon Sep 17 00:00:00 2001 From: merge-script Date: Thu, 12 Mar 2026 08:28:00 +0200 Subject: [PATCH] Merge ElementsProject/elements#1536: liquidv1: allow enabling -acceptunlimitedissuances 56eb713150d70e46d4d09b0d00c26237b655994d Log status of ELIP 203 (Pablo Greco) d8052363f3ea8f7c37c5a57dc10c3852ad15962a liquidv1: allow enabling -acceptunlimitedissuances (Pablo Greco) Pull request description: Preparation for the activation of [ELIP 203](https://github.com/ElementsProject/ELIPs/blob/main/elip-0203.mediawiki), we need to move from a hardcoded false to an optionin liquidv1 ACKs for top commit: tomt1664: Tested ACK 56eb713150d70e46d4d09b0d00c26237b655994d delta1: ACK 56eb713150d70e46d4d09b0d00c26237b655994d; tested locally, changes allow acceptunlimitedissuances to be configurable on liquidv1 chain Tree-SHA512: 1671634af6f3dfeaf48c9c6f9aa8598fed1eddc6a279b7bbbfd6d7d7062b89d85a60ec561560308d55ef4e80790db760b8dd20c19167db248d13d41570893314 --- src/init.cpp | 1 + src/kernel/chainparams.cpp | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index 11c840424e..f13d6eca45 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1379,6 +1379,7 @@ static ChainstateLoadResult InitAndLoadChainstate( return {ChainstateLoadStatus::FAILURE_FATAL, mempool_error}; } LogPrintf("* Using %.1f MiB for in-memory UTXO set (plus up to %.1f MiB of unused mempool space)\n", cache_sizes.coins * (1.0 / 1024 / 1024), mempool_opts.max_size_bytes * (1.0 / 1024 / 1024)); + LogPrintf("ELIP 203 is%s active\n", (chainparams.GetAcceptUnlimitedIssuances())?"":" not"); ChainstateManager::Options chainman_opts{ .chainparams = chainparams, .datadir = args.GetDataDirNet(), diff --git a/src/kernel/chainparams.cpp b/src/kernel/chainparams.cpp index e602df8bbf..22e5e550e7 100644 --- a/src/kernel/chainparams.cpp +++ b/src/kernel/chainparams.cpp @@ -1402,7 +1402,7 @@ public: enforce_pak = true; - accept_unlimited_issuances = false; + accept_unlimited_issuances = args.GetBoolArg("-acceptunlimitedissuances", false); multi_data_permitted = true; create_discount_ct = args.GetBoolArg("-creatediscountct", false); @@ -1762,8 +1762,6 @@ public: enforce_pak = args.GetBoolArg("-enforce_pak", enforce_pak); - accept_unlimited_issuances = args.GetBoolArg("-acceptunlimitedissuances", accept_unlimited_issuances); - multi_data_permitted = args.GetBoolArg("-multi_data_permitted", multi_data_permitted); create_discount_ct = args.GetBoolArg("-creatediscountct", create_discount_ct); accept_discount_ct = args.GetBoolArg("-acceptdiscountct", accept_discount_ct) || create_discount_ct;