Skip to content

Commit

Permalink
Upgrade version to 0.13.4.1. Fixed znode payment checking. Added miss…
Browse files Browse the repository at this point in the history
…ing resource to qt
  • Loading branch information
sn-ntu committed Dec 6, 2017
1 parent 27aadcb commit 9114101
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 0)
define(_CLIENT_VERSION_MINOR, 13)
define(_CLIENT_VERSION_REVISION, 4)
define(_CLIENT_VERSION_BUILD, 0)
define(_CLIENT_VERSION_BUILD, 1)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2017)
define(_COPYRIGHT_HOLDERS,[The %s developers])
Expand Down
1 change: 1 addition & 0 deletions contrib/bitcoin-qt.pro
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ FORMS += \
../src/qt/forms/sendcoinsentry.ui \
../src/qt/forms/signverifymessagedialog.ui \
../src/qt/forms/transactiondescdialog.ui \
../src/qt/forms/znodelist.ui \
../src/qt/forms/zerocoinpage.ui \

RESOURCES += \
Expand Down
1 change: 1 addition & 0 deletions src/Makefile.qt.include
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ RES_ICONS = \
qt/res/icons/bitcoin.png \
qt/res/icons/zcoin.png \
qt/res/icons/zerocoin.png \
qt/res/icons/znodes.png \
qt/res/icons/qrcode.png \
qt/res/icons/chevron.png \
qt/res/icons/clock1.png \
Expand Down
9 changes: 3 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1373,8 +1373,7 @@ bool CheckTransaction(const CTransaction &tx, CValidationState &state, uint256 h
bool found_3 = false;
bool found_4 = false;
bool found_5 = false;
int total_payment_tx = 0;
bool found_znode_payment = true; // no more than 1 output for payment
int total_payment_tx = 0; // no more than 1 output for payment
CScript FOUNDER_1_SCRIPT;
CScript FOUNDER_2_SCRIPT;
CScript FOUNDER_3_SCRIPT;
Expand Down Expand Up @@ -1468,9 +1467,7 @@ bool CheckTransaction(const CTransaction &tx, CValidationState &state, uint256 h
found_5 = true;
continue;
}
if (znodePayment != output.nValue) {
found_znode_payment = false;
} else {
if (znodePayment == output.nValue) {
total_payment_tx = total_payment_tx + 1;
}
}
Expand All @@ -1481,7 +1478,7 @@ bool CheckTransaction(const CTransaction &tx, CValidationState &state, uint256 h
"CTransaction::CheckTransaction() : founders reward missing");
}

if (!found_znode_payment || total_payment_tx > 1) {
if (total_payment_tx > 1) {
return state.DoS(100, false, REJECT_INVALID_ZNODE_PAYMENT,
"CTransaction::CheckTransaction() : invalid znode payment");
}
Expand Down

0 comments on commit 9114101

Please sign in to comment.