fix for supply_info command with SAL supply going negative
This commit is contained in:
10
README.md
10
README.md
@@ -1,4 +1,4 @@
|
|||||||
# Salvium Zero v0.9.2
|
# Salvium Zero v0.9.3
|
||||||
|
|
||||||
Copyright (c) 2023-2024, Salvium
|
Copyright (c) 2023-2024, Salvium
|
||||||
Portions Copyright (c) 2014-2023, The Monero Project
|
Portions Copyright (c) 2014-2023, The Monero Project
|
||||||
@@ -172,7 +172,7 @@ invokes cmake commands as needed.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd salvium
|
cd salvium
|
||||||
git checkout v0.9.2
|
git checkout v0.9.3
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -251,7 +251,7 @@ Tested on a Raspberry Pi Zero with a clean install of minimal Raspbian Stretch (
|
|||||||
```bash
|
```bash
|
||||||
git clone https://github.com/salvium/salvium
|
git clone https://github.com/salvium/salvium
|
||||||
cd salvium
|
cd salvium
|
||||||
git checkout v0.9.2
|
git checkout v0.9.3
|
||||||
```
|
```
|
||||||
|
|
||||||
* Build:
|
* Build:
|
||||||
@@ -370,10 +370,10 @@ application.
|
|||||||
cd salvium
|
cd salvium
|
||||||
```
|
```
|
||||||
|
|
||||||
* If you would like a specific [version/tag](https://github.com/salvium/salvium/tags), do a git checkout for that version. eg. 'v0.9.2'. 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. 'v0.9.3'. If you don't care about the version and just want binaries from master, skip this step:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git checkout v0.9.2
|
git checkout v0.9.3
|
||||||
```
|
```
|
||||||
|
|
||||||
* If you are on a 64-bit system, run:
|
* If you are on a 64-bit system, run:
|
||||||
|
|||||||
@@ -3778,6 +3778,11 @@ std::map<std::string,uint64_t> BlockchainLMDB::get_circulating_supply() const
|
|||||||
//amount += m_coinbase;
|
//amount += m_coinbase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (amount < 0) {
|
||||||
|
// Negative number can't be converted to a 64-bit UINT, so return 0, but retain -ve number privately
|
||||||
|
LOG_PRINT_L2("BlockchainLMDB::" << __func__ << " - supply of " << currency_label << " is negative (" << amount << ") but outputting zero");
|
||||||
|
amount = 0;
|
||||||
|
}
|
||||||
circulating_supply[currency_label] = amount.convert_to<uint64_t>();
|
circulating_supply[currency_label] = amount.convert_to<uint64_t>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#define DEF_SALVIUM_VERSION_TAG "@VERSIONTAG@"
|
#define DEF_SALVIUM_VERSION_TAG "@VERSIONTAG@"
|
||||||
#define DEF_SALVIUM_VERSION "0.9.2"
|
#define DEF_SALVIUM_VERSION "0.9.3"
|
||||||
#define DEF_MONERO_VERSION_TAG "release"
|
#define DEF_MONERO_VERSION_TAG "release"
|
||||||
#define DEF_MONERO_VERSION "0.18.3.3"
|
#define DEF_MONERO_VERSION "0.18.3.3"
|
||||||
#define DEF_MONERO_RELEASE_NAME "Zero"
|
#define DEF_MONERO_RELEASE_NAME "Zero"
|
||||||
|
|||||||
Reference in New Issue
Block a user