Skip to content

Commit 1c04053

Browse files
2 parents d5c5a26 + bfc5f4b commit 1c04053

File tree

109 files changed

+171
-133
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+171
-133
lines changed

.travis.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,12 @@ after_success:
210210
FILE_ENV="./ci/test/00_setup_env_arm.sh"
211211
QEMU_USER_CMD=""
212212
213-
# s390 build was disabled temporarily because of disk space issues on the Travis VM
214-
#
215-
# - stage: test
216-
# name: 'S390x [GOAL: install] [focal] [unit tests, functional tests]'
217-
# arch: s390x # Can disable QEMU_USER_CMD and run the tests natively without qemu
218-
# env: >-
219-
# FILE_ENV="./ci/test/00_setup_env_s390x.sh"
220-
# QEMU_USER_CMD=""
213+
- stage: test
214+
name: 'S390x [GOAL: install] [focal] [unit tests, functional tests]'
215+
arch: s390x # Can disable QEMU_USER_CMD and run the tests natively without qemu
216+
env: >-
217+
FILE_ENV="./ci/test/00_setup_env_s390x.sh"
218+
QEMU_USER_CMD=""
221219
222220
- stage: test
223221
name: 'Win64 [GOAL: deploy] [unit tests, no gui, no functional tests]'

contrib/devtools/optimize-pngs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def content_hash(filename):
2727
pngcrush = 'pngcrush'
2828
git = 'git'
2929
folders = [
30-
"src/qt/res/movies",
30+
"src/qt/res/animation",
3131
"src/qt/res/icons",
3232
"src/qt/res/images",
3333
"share/pixmaps"

doc/bips.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
BIPs that are implemented by Dash Core (up-to-date up to **v18.0**):
1+
BIPs that are implemented by Bitcoin Core, some of them are relevant for Dash Core, some are just mentioned as a reference.
2+
Specified versions, PRs are relevant to Bitcoin's core.
23

34
* [`BIP 9`](https://github.com/bitcoin/bips/blob/master/bip-0009.mediawiki): The changes allowing multiple soft-forks to be deployed in parallel have been implemented since **v0.12.1** ([PR #7575](https://github.com/bitcoin/bitcoin/pull/7575))
45
* [`BIP 11`](https://github.com/bitcoin/bips/blob/master/bip-0011.mediawiki): Multisig outputs are standard since **v0.6.0** ([PR #669](https://github.com/bitcoin/bitcoin/pull/669)).

doc/build-openbsd.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
OpenBSD build guide
22
======================
3-
(updated for OpenBSD 6.2)
3+
(updated for OpenBSD 6.7)
44

55
This guide describes how to build dashd, dash-qt, and command-line utilities on OpenBSD.
66

@@ -14,7 +14,7 @@ pkg_add git gmake libevent libtool
1414
pkg_add qt5 # (optional for enabling the GUI)
1515
pkg_add autoconf # (select highest version, e.g. 2.69)
1616
pkg_add automake # (select highest version, e.g. 1.15)
17-
pkg_add python # (select highest version, e.g. 3.6)
17+
pkg_add python # (select highest version, e.g. 3.8)
1818
pkg_add gmp
1919
pkg_add boost
2020

@@ -24,10 +24,10 @@ git clone https://github.com/dashpay/dash.git
2424
See [dependencies.md](dependencies.md) for a complete overview.
2525

2626
**Important**: From OpenBSD 6.2 onwards a C++11-supporting clang compiler is
27-
part of the base image, and while building it is necessary to make sure that this
28-
compiler is used and not ancient g++ 4.2.1. This is done by appending
29-
`CC=cc CXX=c++` to configuration commands. Mixing different compilers
30-
within the same executable will result in linker errors.
27+
part of the base image, and while building it is necessary to make sure that
28+
this compiler is used and not ancient g++ 4.2.1. This is done by appending
29+
`CC=cc CC_FOR_BUILD=cc CXX=c++` to configuration commands. Mixing different
30+
compilers within the same executable will result in errors.
3131

3232
### Building BerkeleyDB
3333

@@ -71,7 +71,7 @@ To configure with wallet:
7171

7272
To configure without wallet:
7373
```bash
74-
./configure --disable-wallet --with-gui=no CC=cc CXX=c++ MAKE=gmake
74+
./configure --disable-wallet --with-gui=no CC=cc CC_FOR_BUILD=cc CXX=c++ MAKE=gmake
7575
```
7676

7777
To configure with GUI:

src/Makefile.qt.include

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ RES_FONTS = \
350350
qt/res/fonts/Montserrat/Montserrat-Thin.otf \
351351
qt/res/fonts/Montserrat/Montserrat-ThinItalic.otf
352352

353-
RES_MOVIES = $(wildcard $(srcdir)/qt/res/movies/spinner-*.png)
353+
RES_ANIMATION = $(wildcard $(srcdir)/qt/res/animation/spinner-*.png)
354354

355355
BITCOIN_RC = qt/res/dash-qt-res.rc
356356

@@ -362,7 +362,7 @@ qt_libbitcoinqt_a_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
362362
qt_libbitcoinqt_a_OBJCXXFLAGS = $(AM_OBJCXXFLAGS) $(QT_PIE_FLAGS)
363363

364364
qt_libbitcoinqt_a_SOURCES = $(BITCOIN_QT_CPP) $(BITCOIN_QT_H) $(QT_FORMS_UI) \
365-
$(QT_QRC) $(QT_QRC_LOCALE) $(QT_TS) $(RES_ICONS) $(RES_IMAGES) $(RES_CSS) $(RES_FONTS) $(RES_MOVIES)
365+
$(QT_QRC) $(QT_QRC_LOCALE) $(QT_TS) $(RES_ICONS) $(RES_IMAGES) $(RES_CSS) $(RES_FONTS) $(RES_ANIMATION)
366366
if TARGET_DARWIN
367367
qt_libbitcoinqt_a_SOURCES += $(BITCOIN_MM)
368368
endif
@@ -435,7 +435,7 @@ $(QT_QRC_LOCALE_CPP): $(QT_QRC_LOCALE) $(QT_QM)
435435
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(RCC) -name dash_locale --format-version 1 $(@D)/temp_$(<F) > $@
436436
@rm $(@D)/temp_$(<F)
437437

438-
$(QT_QRC_CPP): $(QT_QRC) $(QT_FORMS_H) $(RES_ICONS) $(RES_IMAGES) $(RES_CSS) $(RES_FONTS) $(RES_MOVIES)
438+
$(QT_QRC_CPP): $(QT_QRC) $(QT_FORMS_H) $(RES_ICONS) $(RES_IMAGES) $(RES_CSS) $(RES_FONTS) $(RES_ANIMATION)
439439
@test -f $(RCC)
440440
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(RCC) -name dash --format-version 1 $< > $@
441441

src/consensus/validation.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ enum class TxValidationResult {
1919
*/
2020
// Only loose txn:
2121
TX_RECENT_CONSENSUS_CHANGE,
22-
TX_NOT_STANDARD, //!< didn't meet our local policy rules
22+
TX_INPUTS_NOT_STANDARD, //!< inputs (covered by txid) failed policy rules
23+
TX_NOT_STANDARD, //!< otherwise didn't meet our local policy rules
2324
TX_MISSING_INPUTS, //!< transaction was missing some of its inputs
2425
TX_PREMATURE_SPEND, //!< transaction spends a coinbase too early, or violates locktime/sequence locks
2526
TX_BAD_SPECIAL, //!< special transaction violates some rules that are not enough for insta-ban

src/net_processing.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ std::chrono::microseconds CalculateObjectGetDataTime(const CInv& inv, std::chron
11081108
}
11091109

11101110
// We delay processing announcements from inbound peers
1111-
if (inv.type == MSG_TX && !fMasternodeMode && use_inbound_delay) process_time += INBOUND_PEER_TX_DELAY;
1111+
if (inv.IsMsgTx() && !fMasternodeMode && use_inbound_delay) process_time += INBOUND_PEER_TX_DELAY;
11121112

11131113
return process_time;
11141114
}
@@ -1532,6 +1532,7 @@ bool PeerManagerImpl::MaybePunishNodeForTx(NodeId nodeid, const TxValidationStat
15321532
}
15331533
// Conflicting (but not necessarily invalid) data or different policy:
15341534
case TxValidationResult::TX_RECENT_CONSENSUS_CHANGE:
1535+
case TxValidationResult::TX_INPUTS_NOT_STANDARD:
15351536
case TxValidationResult::TX_NOT_STANDARD:
15361537
case TxValidationResult::TX_MISSING_INPUTS:
15371538
case TxValidationResult::TX_PREMATURE_SPEND:
@@ -1834,12 +1835,12 @@ bool PeerManagerImpl::AlreadyHave(const CInv& inv)
18341835
// masternode would not be able to exploit this to spam the network with specially
18351836
// crafted invalid DSTX-es and potentially cause high load cheaply, because
18361837
// corresponding checks in ProcessMessage won't let it to send DSTX-es too often.
1837-
bool fIgnoreRecentRejects = inv.type == MSG_DSTX ||
1838+
bool fIgnoreRecentRejects = inv.IsMsgDstx() ||
18381839
m_llmq_ctx->isman->IsWaitingForTx(inv.hash) ||
18391840
m_llmq_ctx->isman->IsLocked(inv.hash);
18401841

18411842
return (!fIgnoreRecentRejects && m_recent_rejects.contains(inv.hash)) ||
1842-
(inv.type == MSG_DSTX && static_cast<bool>(::dstxManager->GetDSTX(inv.hash))) ||
1843+
(inv.IsMsgDstx() && static_cast<bool>(::dstxManager->GetDSTX(inv.hash))) ||
18431844
m_mempool.exists(inv.hash) ||
18441845
(g_txindex != nullptr && g_txindex->HasTx(inv.hash));
18451846
}
@@ -2149,11 +2150,11 @@ void PeerManagerImpl::ProcessGetData(CNode& pfrom, Peer& peer, const std::atomic
21492150
}
21502151

21512152
bool push = false;
2152-
if (inv.type == MSG_TX || inv.type == MSG_DSTX) {
2153+
if (inv.IsGenTxMsg()) {
21532154
CTransactionRef tx = FindTxForGetData(&pfrom, inv.hash, mempool_req, longlived_mempool_time);
21542155
if (tx) {
21552156
CCoinJoinBroadcastTx dstx;
2156-
if (inv.type == MSG_DSTX) {
2157+
if (inv.IsMsgDstx()) {
21572158
dstx = ::dstxManager->GetDSTX(inv.hash);
21582159
}
21592160
if (dstx) {

src/protocol.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,13 @@ class CInv
543543
std::string GetCommand() const;
544544
std::string ToString() const;
545545

546+
// Single-message helper methods
547+
bool IsMsgTx() const { return type == MSG_TX; }
548+
bool IsMsgDstx() const { return type == MSG_DSTX; }
549+
550+
// Combined-message helper methods
551+
bool IsGenTxMsg() const { return type == MSG_TX || type == MSG_DSTX; }
552+
546553
private:
547554
const char* GetCommandInternal() const;
548555

src/qt/bitcoingui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ void BitcoinGUI::startSpinner()
273273
static std::vector<std::unique_ptr<QPixmap>>::iterator itFrame;
274274
while (vecFrames.size() < SPINNER_FRAMES) {
275275
QString&& strFrame = QString("spinner-%1").arg(vecFrames.size(), 3, 10, QChar('0'));
276-
QPixmap&& frame = getIcon(strFrame, GUIUtil::ThemedColor::ORANGE, MOVIES_PATH).pixmap(STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE);
276+
QPixmap&& frame = getIcon(strFrame, GUIUtil::ThemedColor::ORANGE, ":animation/").pixmap(STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE);
277277
itFrame = vecFrames.insert(vecFrames.end(), std::make_unique<QPixmap>(frame));
278278
}
279279
assert(vecFrames.size() == SPINNER_FRAMES);

0 commit comments

Comments
 (0)