Skip to content

Commit 5e36c0e

Browse files
committed
Merge branch 'master' into elem-23.3.3-final
2 parents 2262381 + 8db19e9 commit 5e36c0e

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/chainparamsbase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const std::string CBaseChainParams::DEFAULT = CBaseChainParams::LIQUID1;
2222

2323
void SetupChainParamsBaseOptions(ArgsManager& argsman)
2424
{
25-
argsman.AddArg("-chain=<chain>", "Use the chain <chain> (default: liquidv1). Reserved values: main, test, signet, regtest, liquidv1, liquidv1test", ArgsManager::ALLOW_ANY, OptionsCategory::CHAINPARAMS);
25+
argsman.AddArg("-chain=<chain>", "Use the chain <chain> (default: liquidv1). Reserved values: main, test, signet, regtest, liquidv1, liquidv1test, liquidtestnet", ArgsManager::ALLOW_ANY, OptionsCategory::CHAINPARAMS);
2626
argsman.AddArg("-regtest", "Enter regression test mode, which uses a special chain in which blocks can be solved instantly. "
2727
"This is intended for regression testing tools and app development. Equivalent to -chain=regtest.", ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::CHAINPARAMS);
2828
argsman.AddArg("-testactivationheight=name@height.", "Set the activation height of 'name' (segwit, bip34, dersig, cltv, csv). (regtest-only)", ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::DEBUG_TEST);

src/qt/bitcoinamountfield.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ class AmountSpinBox: public QAbstractSpinBox
124124
val.second = val.second + steps * currentSingleStep;
125125
val.second = qMax(val.second, CAmount(0));
126126
val.second = qBound(m_min_amount, val.second, m_max_amount);
127-
// FIXME: Add this back in when assets can have > MAX_MONEY
128-
// if (val.first == Params().GetConsensus().pegged_asset)
129-
{
130-
val.second = qMin(val.second, BitcoinUnits::maxMoney());
131-
}
127+
// ELEMENTS: issued assets can have values > MAX_MONEY
128+
if (val.first == Params().GetConsensus().pegged_asset)
129+
{
130+
val.second = qMin(val.second, BitcoinUnits::maxMoney());
131+
}
132132
setValue(val);
133133
}
134134

@@ -228,8 +228,8 @@ class AmountSpinBox: public QAbstractSpinBox
228228
bool valid = GUIUtil::parseAssetAmount(current_asset, text, currentUnit, &val);
229229
if(valid)
230230
{
231-
// FIXME: Add this back in when assets can have > MAX_MONEY
232-
if (val < 0 || (val > BitcoinUnits::maxMoney() /*&& current_asset == Params().GetConsensus().pegged_asset*/)) {
231+
// ELEMENTS: issued assets can have values > MAX_MONEY
232+
if (val < 0 || (val > BitcoinUnits::maxMoney() && current_asset == Params().GetConsensus().pegged_asset)) {
233233
valid = false;
234234
}
235235
}

src/rpc/blockchain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ RPCHelpMan getblockchaininfo()
16721672
RPCResult{
16731673
RPCResult::Type::OBJ, "", "",
16741674
{
1675-
{RPCResult::Type::STR, "chain", "current network name (main, test, signet, regtest)"},
1675+
{RPCResult::Type::STR, "chain", "current network name (main, test, signet, regtest, liquidv1, liquidv1test, liquidtestnet)"},
16761676
{RPCResult::Type::NUM, "blocks", "the height of the most-work fully-validated chain. The genesis block has height 0"},
16771677
{RPCResult::Type::NUM, "headers", "the current number of headers we have validated"},
16781678
{RPCResult::Type::STR, "bestblockhash", "the hash of the currently best block"},

src/rpc/mining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ static RPCHelpMan getmininginfo()
444444
{RPCResult::Type::NUM, "difficulty", "The current difficulty"},
445445
{RPCResult::Type::NUM, "networkhashps", "The network hashes per second"},
446446
{RPCResult::Type::NUM, "pooledtx", "The size of the mempool"},
447-
{RPCResult::Type::STR, "chain", "current network name (main, test, signet, regtest)"},
447+
{RPCResult::Type::STR, "chain", "current network name (main, test, signet, regtest, liquidv1, liquidv1test, liquidtestnet)"},
448448
{RPCResult::Type::STR, "warnings", "any network and blockchain warnings"},
449449
}},
450450
RPCExamples{

0 commit comments

Comments
 (0)