Skip to content

Commit 939de3e

Browse files
committed
Merge remote-tracking branch 'upstream/master' into 0.15
2 parents 99c1224 + 2991e65 commit 939de3e

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

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, 0)
44
define(_CLIENT_VERSION_MINOR, 15)
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, 2018)

src/pow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead
2828
bool postfork = nHeight >= params.BTGHeight;
2929

3030
if (postfork == false) {
31-
// Original Bitcion PoW.
31+
// Original Bitcoin PoW.
3232
return BitcoinGetNextWorkRequired(pindexLast, pblock, params);
3333
}
3434
else if (nHeight < params.BTGHeight + params.BTGPremineWindow) {

src/qt/locale/bitcoin_ar.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@
6363
</message>
6464
<message>
6565
<source>These are your Bitcoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source>
66-
<translation>هذه هي عناوين Bitcion التابعة لك من أجل إرسال الدفعات. تحقق دائما من المبلغ و عنوان المرسل المستقبل قبل إرسال العملات</translation>
66+
<translation>هذه هي عناوين Bitcoin التابعة لك من أجل إرسال الدفعات. تحقق دائما من المبلغ و عنوان المرسل المستقبل قبل إرسال العملات</translation>
6767
</message>
6868
<message>
6969
<source>These are your Bitcoin addresses for receiving payments. It is recommended to use a new receiving address for each transaction.</source>
70-
<translation>هذه هي عناوين Bitcion التابعة لك من أجل إستقبال الدفعات. ينصح استخدام عنوان جديد من أجل كل صفقة</translation>
70+
<translation>هذه هي عناوين Bitcoin التابعة لك من أجل إستقبال الدفعات. ينصح استخدام عنوان جديد من أجل كل صفقة</translation>
7171
</message>
7272
<message>
7373
<source>&amp;Copy Address</source>
@@ -2052,4 +2052,4 @@
20522052
<translation>خطأ</translation>
20532053
</message>
20542054
</context>
2055-
</TS>
2055+
</TS>

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2868,7 +2868,7 @@ bool CheckBlock(const CBlock& block, CValidationState& state, const Consensus::P
28682868

28692869
// Check transactions
28702870
for (const auto& tx : block.vtx)
2871-
if (!CheckTransaction(*tx, state, false))
2871+
if (!CheckTransaction(*tx, state, true))
28722872
return state.Invalid(false, state.GetRejectCode(), state.GetRejectReason(),
28732873
strprintf("Transaction check failed (tx hash %s) %s", tx->GetHash().ToString(), state.GetDebugMessage()));
28742874

test/functional/invalidblockrequest.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,17 @@ def get_tests(self):
9797
yield TestInstance([[block2, RejectResult(16, b'bad-txns-duplicate')], [block2_orig, True]])
9898
height += 1
9999

100+
101+
# Check transactions for duplicate inputs
102+
self.log.info("Test duplicate input block.")
103+
104+
block2_orig.vtx[2].vin.append(block2_orig.vtx[2].vin[0])
105+
block2_orig.vtx[2].rehash()
106+
block2_orig.hashMerkleRoot = block2_orig.calc_merkle_root()
107+
block2_orig.rehash()
108+
block2_orig.solve()
109+
yield TestInstance([[block2_orig, RejectResult(16, b'bad-txns-inputs-duplicate')]])
110+
100111
'''
101112
Make sure that a totally screwed up block is not valid.
102113
'''

0 commit comments

Comments
 (0)