Skip to content

Commit 51f3443

Browse files
author
Mark Ney
committed
Merging develop to Master for 4.3.2 release
2 parents d684c44 + a638665 commit 51f3443

27 files changed

+346
-27
lines changed

.github/scripts/05-binary-checks.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
OS=${1}
44
GITHUB_WORKSPACE=${2}
55

6-
export BOOST_TEST_LOG_LEVEL=error
6+
# "all" is too much log information. This will increase from verbosity from error"
7+
#export BOOST_TEST_LOG_LEVEL=all
78

89
if [[ ${OS} == "windows" ]]; then
910
echo "----------------------------------------"

.github/workflows/build-raven.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- release*
77
pull_request:
88
branches:
9+
- master
910
- develop
1011
- release*
1112
paths-ignore:

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
22
AC_PREREQ([2.60])
33
define(_CLIENT_VERSION_MAJOR, 4)
44
define(_CLIENT_VERSION_MINOR, 3)
5-
define(_CLIENT_VERSION_REVISION, 1)
5+
define(_CLIENT_VERSION_REVISION, 2)
66
define(_CLIENT_VERSION_BUILD, 0)
77
define(_CLIENT_VERSION_IS_RELEASE, true)
88
define(_COPYRIGHT_YEAR, 2020)

src/Makefile.qt.include

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ RES_ICONS = \
310310
qt/res/icons/editcopy.png \
311311
qt/res/icons/editpaste.png \
312312
qt/res/icons/export.png \
313+
qt/res/icons/external_link.png \
314+
qt/res/icons/external_link_dark.png \
313315
qt/res/icons/eye.png \
314316
qt/res/icons/eye_minus.png \
315317
qt/res/icons/eye_plus.png \

src/chainparamsseeds.h

Lines changed: 183 additions & 2 deletions
Large diffs are not rendered by default.

src/init.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@
6565
#include <boost/algorithm/string/classification.hpp>
6666
#include <boost/algorithm/string/replace.hpp>
6767
#include <boost/algorithm/string/split.hpp>
68-
#include <boost/bind.hpp>
68+
// Fixing Boost 1.73 compile errors
69+
#include <boost/bind/bind.hpp>
70+
using namespace boost::placeholders;
6971
#include <boost/interprocess/sync/file_lock.hpp>
7072
#include <boost/thread.hpp>
7173
#include <openssl/crypto.h>

src/qt/assetrecord.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ class AssetRecord
1818
public:
1919

2020
AssetRecord():
21-
name(""), quantity(0), units(0), fIsAdministrator(false)
21+
name(""), quantity(0), units(0), fIsAdministrator(false), ipfshash("")
2222
{
2323
}
2424

25-
AssetRecord(const std::string _name, const CAmount& _quantity, const int _units, const bool _fIsAdministrator):
26-
name(_name), quantity(_quantity), units(_units), fIsAdministrator(_fIsAdministrator)
25+
AssetRecord(const std::string _name, const CAmount& _quantity, const int _units, const bool _fIsAdministrator, const std::string _ipfshash):
26+
name(_name), quantity(_quantity), units(_units), fIsAdministrator(_fIsAdministrator), ipfshash(_ipfshash)
2727
{
2828
}
2929

@@ -48,6 +48,7 @@ class AssetRecord
4848
CAmount quantity;
4949
int units;
5050
bool fIsAdministrator;
51+
std::string ipfshash;
5152
/**@}*/
5253

5354
};

src/qt/assettablemodel.cpp

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class AssetTablePriv {
5555
// retrieve units for asset
5656
uint8_t units = OWNER_UNITS;
5757
bool fIsAdministrator = true;
58+
std::string ipfsHash = "";
5859

5960
if (setAssetsToSkip.count(bal->first))
6061
continue;
@@ -67,6 +68,7 @@ class AssetTablePriv {
6768
return;
6869
}
6970
units = assetData.units;
71+
ipfsHash = assetData.strIPFSHash;
7072
// If we have the administrator asset, add it to the skip listå
7173
if (balances.count(bal->first + OWNER_TAG)) {
7274
setAssetsToSkip.insert(bal->first + OWNER_TAG);
@@ -82,7 +84,7 @@ class AssetTablePriv {
8284
continue;
8385
}
8486
}
85-
cachedBalances.append(AssetRecord(bal->first, bal->second, units, fIsAdministrator));
87+
cachedBalances.append(AssetRecord(bal->first, bal->second, units, fIsAdministrator, EncodeAssetData(ipfsHash)));
8688
}
8789
}
8890
}
@@ -158,8 +160,25 @@ QVariant AssetTableModel::data(const QModelIndex &index, int role) const
158160
case FormattedAmountRole:
159161
return QString::fromStdString(rec->formattedQuantity());
160162
case AdministratorRole:
161-
{
162163
return rec->fIsAdministrator;
164+
case AssetIPFSHashRole:
165+
return QString::fromStdString(rec->ipfshash);
166+
case AssetIPFSHashDecorationRole:
167+
{
168+
if (index.column() == Quantity)
169+
return QVariant();
170+
171+
if (rec->ipfshash.size() == 0)
172+
return QVariant();
173+
174+
QPixmap pixmap;
175+
176+
if (darkModeEnabled)
177+
pixmap = QPixmap::fromImage(QImage(":/icons/external_link_dark"));
178+
else
179+
pixmap = QPixmap::fromImage(QImage(":/icons/external_link"));
180+
181+
return pixmap;
163182
}
164183
case Qt::DecorationRole:
165184
{
@@ -235,7 +254,7 @@ QModelIndex AssetTableModel::index(int row, int column, const QModelIndex &paren
235254

236255
QString AssetTableModel::formatTooltip(const AssetRecord *rec) const
237256
{
238-
QString tooltip = formatAssetName(rec) + QString("\n") + formatAssetQuantity(rec);
257+
QString tooltip = formatAssetName(rec) + QString("\n") + formatAssetQuantity(rec) + QString("\n") + formatAssetData(rec);
239258
return tooltip;
240259
}
241260

@@ -247,4 +266,9 @@ QString AssetTableModel::formatAssetName(const AssetRecord *wtx) const
247266
QString AssetTableModel::formatAssetQuantity(const AssetRecord *wtx) const
248267
{
249268
return QString::fromStdString(wtx->formattedQuantity());
269+
}
270+
271+
QString AssetTableModel::formatAssetData(const AssetRecord *wtx) const
272+
{
273+
return QString::fromStdString(wtx->ipfshash);
250274
}

src/qt/assettablemodel.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ class AssetTableModel : public QAbstractTableModel
4343
/** Formatted amount, without brackets when unconfirmed */
4444
FormattedAmountRole = 102,
4545
/** AdministratorRole */
46-
AdministratorRole = 103
46+
AdministratorRole = 103,
47+
/** RVN or name of an asset */
48+
AssetIPFSHashRole = 104,
49+
/** IPFS Decoration Role */
50+
AssetIPFSHashDecorationRole = 105
4751
};
4852

4953
int rowCount(const QModelIndex &parent) const;
@@ -52,6 +56,7 @@ class AssetTableModel : public QAbstractTableModel
5256
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
5357
QModelIndex index(int row, int column, const QModelIndex & parent = QModelIndex()) const;
5458
QString formatTooltip(const AssetRecord *rec) const;
59+
QString formatAssetData(const AssetRecord *wtx) const;
5560
QString formatAssetName(const AssetRecord *wtx) const;
5661
QString formatAssetQuantity(const AssetRecord *wtx) const;
5762

src/qt/clientmodel.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
#include <QDebug>
2727
#include <QTimer>
2828

29+
// Fixing Boost 1.73 compile errors
30+
#include <boost/bind/bind.hpp>
31+
using namespace boost::placeholders;
2932
class CBlockIndex;
3033

3134
static int64_t nLastHeaderTipUpdateNotification = 0;

0 commit comments

Comments
 (0)