Skip to content

Commit

Permalink
Merge pull request #57 from lukem512/patch-1
Browse files Browse the repository at this point in the history
Add support for miniupnpc 1.9
  • Loading branch information
VR2ualize authored and MxJmpBean committed Jan 22, 2018
1 parent 2309b2a commit 02a1bea
Show file tree
Hide file tree
Showing 37 changed files with 17 additions and 17 deletions.
Binary file modified contrib/installer/maxcoin.ico
100644 → 100755
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/readme-qt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ for Ubuntu >= 12.04 (please read the 'Berkely DB version warning' below):

apt-get install qt4-qmake libqt4-dev build-essential libboost-dev libboost-system-dev \
libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev \
libssl-dev libdb++-dev libminiupnpc-dev crypto++
libssl-dev libdb++-dev libminiupnpc-dev libcrypto++-dev

then execute the following:

Expand Down
4 changes: 2 additions & 2 deletions maxcoin-qt.pro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
TEMPLATE = app
TARGET = maxcoin-qt
macx:TARGET = "MaxCoin-Qt"
VERSION = 0.9.4.0
VERSION = 0.9.4.1
INCLUDEPATH += src src/json src/qt
QT += network
DEFINES += QT_GUI BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE
Expand Down Expand Up @@ -450,7 +450,7 @@ macx:QMAKE_INFO_PLIST = share/qt/Info.plist
# Set libraries and includes at end, to use platform-defined defaults if not overridden
INCLUDEPATH += $$BOOST_INCLUDE_PATH $$BDB_INCLUDE_PATH $$OPENSSL_INCLUDE_PATH $$QRENCODE_INCLUDE_PATH
LIBS += $$join(BOOST_LIB_PATH,,-L,) $$join(BDB_LIB_PATH,,-L,) $$join(OPENSSL_LIB_PATH,,-L,) $$join(QRENCODE_LIB_PATH,,-L,)
LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX ./src/cryptopp/libcryptopp.a
LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX $$PWD/src/cryptopp/libcryptopp.a
# -lgdi32 has to happen after -lcrypto (see #681)
win32:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32
LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX
Expand Down
4 changes: 2 additions & 2 deletions src/clientversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 9
#define CLIENT_VERSION_REVISION 4
#define CLIENT_VERSION_BUILD 0
#define CLIENT_VERSION_BUILD 1

// Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true

// Copyright year (2009-this)
// Todo: update this when changing our copyright comments in the source
#define COPYRIGHT_YEAR 2017
#define COPYRIGHT_YEAR 2018

// Converts the parameter X to a string after macro replacement on X has been performed.
// Don't merge these into one macro!
Expand Down
2 changes: 1 addition & 1 deletion src/cryptopp/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CXXFLAGS = -DNDEBUG -g -O2 -Wno-unused-variable -Wno-unused-function -Wno-extra -Wno-type-limits
# -O3 fails to link on Cygwin GCC version 4.5.3
# -fPIC is supported. Please report any breakage of -fPIC as a bug.
# CXXFLAGS += -fPIC
CXXFLAGS += -fPIC
# the following options reduce code size, but breaks link or makes link very slow on some systems
# CXXFLAGS += -ffunction-sections -fdata-sections
# LDFLAGS += -Wl,--gc-sections
Expand Down
2 changes: 1 addition & 1 deletion src/makefile.unix
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ifndef USE_UPNP
override USE_UPNP = -
endif
ifneq (${USE_UPNP}, -)
LIBS += /usr/lib/libminiupnpc.a
LIBS += /usr/lib/x86_64-linux-gnu/libminiupnpc.a
DEFS += -DUSE_UPNP=$(USE_UPNP)
endif

Expand Down
4 changes: 2 additions & 2 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1195,8 +1195,8 @@ void MapPort(bool)
// The first name is used as information source for addrman.
// The second name should resolve to a list of seed addresses.
static const char *strMainNetDNSSeed[][3] = {
{"maxcoinhub.io", "dnsseed.maxcoinhub.io"},
{"maxcoin.org.uk", "dnsseed.maxcoin.org.uk"},
{"Seed A", "a.seed.maxcoinproject.net"},
{"Seed B", "b.seed.maxcoinproject.net"},
{NULL, NULL}
};

Expand Down
2 changes: 1 addition & 1 deletion src/qt/aboutdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ AboutDialog::AboutDialog(QWidget *parent) :
// Set current copyright year
ui->copyrightLabel->setText(
tr("Copyright") + QString(" &copy; 2009-2017 ") + tr("The Bitcoin developers") + QString(",<br>") +
tr("Copyright") + QString(" &copy; 2017 ")/*.arg(COPYRIGHT_YEAR)*/ + tr("The MaxCoin developers"));
tr("Copyright") + QString(" &copy; 2018 ")/*.arg(COPYRIGHT_YEAR)*/ + tr("The MaxCoin Project developers"));
}

void AboutDialog::setModel(ClientModel *model)
Expand Down
2 changes: 1 addition & 1 deletion src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ void BitcoinGUI::createToolBars()
toolbar->addAction(receiveCoinsAction);
toolbar->addAction(historyAction);
toolbar->addAction(addressBookAction);
toolbar->addAction(miningAction);
//toolbar->addAction(miningAction);
}

void BitcoinGUI::setClientModel(ClientModel *clientModel)
Expand Down
8 changes: 4 additions & 4 deletions src/qt/forms/aboutdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>593</width>
<height>350</height>
<width>650</width>
<height>450</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -63,7 +63,7 @@
<cursorShape>IBeamCursor</cursorShape>
</property>
<property name="text">
<string notr="true">0.3.666-beta</string>
<string notr="true">0.9.4.1</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
Expand Down Expand Up @@ -91,7 +91,7 @@
<cursorShape>IBeamCursor</cursorShape>
</property>
<property name="text">
<string notr="true">Copyright &amp;copy; 2009-2014 The Bitcoin developers, 2017 The MaxCoin developers</string>
<string notr="true">Copyright &amp;copy; 2009-2014 The Bitcoin developers, 2018 The MaxCoin developers</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
Expand Down
Binary file modified src/qt/res/icons/bitcoin.icns
Binary file not shown.
Binary file modified src/qt/res/icons/favicon.ico
100644 → 100755
Binary file not shown.
Binary file modified src/qt/res/icons/maxcoin_128.ico
100644 → 100755
Binary file not shown.
Binary file modified src/qt/res/icons/maxcoin_16.ico
100644 → 100755
Binary file not shown.
Binary file added src/qt/res/icons/maxcoin_256.ico
Binary file not shown.
Binary file modified src/qt/res/icons/maxcoin_256.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/qt/res/icons/maxcoin_256_testnet.ico
Binary file not shown.
Binary file modified src/qt/res/icons/maxcoin_256_testnet.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/qt/res/icons/maxcoin_32.ico
100644 → 100755
Binary file not shown.
Binary file modified src/qt/res/icons/maxcoin_32_testnet.ico
100644 → 100755
Binary file not shown.
Binary file modified src/qt/res/icons/maxcoin_48.ico
100644 → 100755
Binary file not shown.
Binary file added src/qt/res/icons/maxcoin_48_testnet.ico
Binary file not shown.
Binary file modified src/qt/res/icons/maxcoin_64.ico
100644 → 100755
Binary file not shown.
Binary file modified src/qt/res/icons/maxcoin_testnet_128.ico
100644 → 100755
Binary file not shown.
Binary file modified src/qt/res/icons/maxcoin_testnet_16.ico
100644 → 100755
Binary file not shown.
Binary file modified src/qt/res/icons/maxcoin_testnet_32.ico
100644 → 100755
Binary file not shown.
Binary file modified src/qt/res/icons/maxcoin_testnet_48.ico
Binary file not shown.
Binary file modified src/qt/res/icons/maxcoin_testnet_64.ico
100644 → 100755
Binary file not shown.
Binary file modified src/qt/res/icons/mining_inactive.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/qt/res/icons/toolbar.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/qt/res/icons/toolbar_testnet.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/qt/res/images/about.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/qt/res/images/about_logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/qt/res/images/splash.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/qt/res/images/splash_testnet.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/rpcrawtransaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ Value listunspent(const Array& params, bool fHelp)
CTxDestination address;
if (ExtractDestination(pk, address))
{
const CScriptID& hash = boost::get<const CScriptID&>(address);
const CScriptID& hash = boost::get<CScriptID>(address);
CScript redeemScript;
if (pwalletMain->GetCScript(hash, redeemScript))
entry.push_back(Pair("redeemScript", HexStr(redeemScript.begin(), redeemScript.end())));
Expand Down
2 changes: 1 addition & 1 deletion src/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
const std::string CLIENT_NAME("Max");

// Client version number
#define CLIENT_VERSION_SUFFIX "-beta"
#define CLIENT_VERSION_SUFFIX ""


// The following part of the code determines the CLIENT_BUILD variable.
Expand Down

0 comments on commit 02a1bea

Please sign in to comment.