From fa8d70a689a31063d68d34fb0bf6e76b92ccc8b6 Mon Sep 17 00:00:00 2001 From: saltedlolly Date: Thu, 4 Apr 2024 11:39:33 +0100 Subject: [PATCH 1/3] Rename Satoshi to DigiSatoshi in QT This matches the currently accepted "official" name. --- src/qt/digibyteunits.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qt/digibyteunits.cpp b/src/qt/digibyteunits.cpp index 32694d998f..dc74f62302 100644 --- a/src/qt/digibyteunits.cpp +++ b/src/qt/digibyteunits.cpp @@ -48,7 +48,7 @@ QString DigiByteUnits::longName(int unit) case DGB: return QString("DGB"); case mDGB: return QString("mDGB"); case uDGB: return QString::fromUtf8("µDGB (bits)"); - case SAT: return QString("Satoshi (sat)"); + case SAT: return QString("DigiSatoshi (sat)"); default: return QString("???"); } } @@ -70,7 +70,7 @@ QString DigiByteUnits::description(int unit) case DGB: return QString("DigiBytes"); case mDGB: return QString("Milli-DigiBytes (1 / 1" THIN_SP_UTF8 "000)"); case uDGB: return QString("Micro-DigiBytes (bits) (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)"); - case SAT: return QString("Satoshi (sat) (1 / 100" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)"); + case SAT: return QString("DigiSatoshi (sat) (1 / 100" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)"); default: return QString("???"); } } From 252fcf051a6ec40dce5612b8d531edacd33468f2 Mon Sep 17 00:00:00 2001 From: saltedlolly Date: Thu, 4 Apr 2024 11:49:04 +0100 Subject: [PATCH 2/3] Update wiki reference --- src/qt/digibyteunits.cpp | 2 ++ src/qt/digibyteunits.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qt/digibyteunits.cpp b/src/qt/digibyteunits.cpp index dc74f62302..ec7c684eb7 100644 --- a/src/qt/digibyteunits.cpp +++ b/src/qt/digibyteunits.cpp @@ -3,6 +3,8 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. +// Source: https://dgbwiki.com/index.php?title=DigiByte#Subunits + #include #include diff --git a/src/qt/digibyteunits.h b/src/qt/digibyteunits.h index 4f6b107a57..05eb718647 100644 --- a/src/qt/digibyteunits.h +++ b/src/qt/digibyteunits.h @@ -37,7 +37,7 @@ class DigiByteUnits: public QAbstractListModel explicit DigiByteUnits(QObject *parent); /** DigiByte units. - @note Source: https://en.digibyte.it/wiki/Units . Please add only sensible ones + @note Source: https://dgbwiki.com/index.php?title=DigiByte#Subunits . Please add only sensible ones */ enum Unit { From 99952ef4a254b69581c881b175a39492da8dff8a Mon Sep 17 00:00:00 2001 From: saltedlolly Date: Thu, 4 Apr 2024 17:14:30 +0100 Subject: [PATCH 3/3] Update digibyteunits.h --- src/qt/digibyteunits.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qt/digibyteunits.h b/src/qt/digibyteunits.h index 05eb718647..869548ab57 100644 --- a/src/qt/digibyteunits.h +++ b/src/qt/digibyteunits.h @@ -68,7 +68,7 @@ class DigiByteUnits: public QAbstractListModel static QString shortName(int unit); //! Longer description static QString description(int unit); - //! Number of Satoshis (1e-8) per unit + //! Number of DigiSatoshis (1e-8) per unit static qint64 factor(int unit); //! Number of decimals left static int decimals(int unit); @@ -104,7 +104,7 @@ class DigiByteUnits: public QAbstractListModel return text; } - //! Return maximum number of base units (Satoshis) + //! Return maximum number of base units (DigiSatoshis) static CAmount maxMoney(); private: