Skip to content

Commit

Permalink
Merge pull request #229 from saltedlolly/rename-satoshi-in-qt
Browse files Browse the repository at this point in the history
Rename Satoshi to DigiSatoshi in QT
  • Loading branch information
ycagel authored May 21, 2024
2 parents 61a2a3e + 99952ef commit 22528bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/qt/digibyteunits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <qt/digibyteunits.h>

#include <QStringList>
Expand Down Expand Up @@ -48,7 +50,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("???");
}
}
Expand All @@ -70,7 +72,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("???");
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/qt/digibyteunits.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 22528bf

Please sign in to comment.