fixed small asset_type issue for sweep; added HF11 block height

This commit is contained in:
Some Random Crypto Guy
2026-03-23 10:16:26 +00:00
parent d6f95156bc
commit 6fb167308c
4 changed files with 32 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
# Salvium One v1.0.7
# Salvium One v1.1.0
Copyright (c) 2023-2025, Salvium
Portions Copyright (c) 2014-2023, The Monero Project
@@ -172,7 +172,7 @@ invokes cmake commands as needed.
```bash
cd salvium
git checkout v1.0.7
git checkout v1.1.0
make
```
@@ -251,7 +251,7 @@ Tested on a Raspberry Pi Zero with a clean install of minimal Raspbian Stretch (
```bash
git clone https://github.com/salvium/salvium
cd salvium
git checkout v1.0.7
git checkout v1.1.0
```
* Build:
@@ -370,10 +370,10 @@ application.
cd salvium
```
* If you would like a specific [version/tag](https://github.com/salvium/salvium/tags), do a git checkout for that version. eg. 'v1.0.7'. If you don't care about the version and just want binaries from master, skip this step:
* If you would like a specific [version/tag](https://github.com/salvium/salvium/tags), do a git checkout for that version. eg. 'v1.1.0'. If you don't care about the version and just want binaries from master, skip this step:
```bash
git checkout v1.0.7
git checkout v1.1.0
```
* If you are on a 64-bit system, run:

View File

@@ -61,6 +61,9 @@ const hardfork_t mainnet_hard_forks[] = {
// version 10 Carrot - including treasury mint - starts from block 334750, which is on or around the 13th of October, 2025. Fork time finalised on 2025-09-29. No fork voting occurs for the v10 fork.
{10, 334750, 0, 1759142500 },
// version 11 Two Milestone 1 - starts from block 465000, which is on or around the 13th of April, 2026. Fork time finalised on 2026-03-20. No fork voting occurs for the v11 fork.
{11, 465000, 0, 1759142500 },
};
const size_t num_mainnet_hard_forks = sizeof(mainnet_hard_forks) / sizeof(mainnet_hard_forks[0]);
const uint64_t mainnet_hard_fork_version_1_till = ((uint64_t)-1);

View File

@@ -8072,11 +8072,30 @@ bool simple_wallet::sweep_main(uint32_t account, uint64_t below, bool locked, co
std::string asset_type = (m_wallet->get_current_hard_fork() >= HF_VERSION_SALVIUM_ONE_PROOFS) ? "SAL1" : "SAL";
if (local_args.size() >= 2)
{
std::string asset_type_check = local_args.back();
if (cryptonote::is_valid_asset_type(asset_type_check)) {
asset_type = asset_type_check;
local_args.pop_back();
std::string strLastArg = local_args.back();
if (strLastArg == "SAL" or strLastArg == "SAL1") {
asset_type = strLastArg;
} else {
std::transform(strLastArg.begin() + 3, strLastArg.end(), strLastArg.begin() + 3, ::toupper);
std::vector<std::string> asset_types = m_wallet->list_asset_types();
// check if the last argument is a known asset type
bool found = false;
for (const auto& asset : asset_types) {
if (strLastArg == asset) {
asset_type = strLastArg;
found = true;
break;
}
}
if (!found) {
fail_msg_writer() << tr("Unknown asset type: ") << strLastArg;
return true;
}
}
local_args.pop_back();
}
cryptonote::address_parse_info info;

View File

@@ -1,5 +1,5 @@
#define DEF_SALVIUM_VERSION_TAG "@VERSIONTAG@"
#define DEF_SALVIUM_VERSION "1.1.0-rc6"
#define DEF_SALVIUM_VERSION "1.1.0"
#define DEF_MONERO_VERSION_TAG "release"
#define DEF_MONERO_VERSION "0.18.4.0"
#define DEF_MONERO_RELEASE_NAME "One"