Skip to content

Commit 9be1aa5

Browse files
committed
Update checkpoints/mnpayments
1 parent f2a90af commit 9be1aa5

File tree

5 files changed

+29
-33
lines changed

5 files changed

+29
-33
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ AC_PREREQ([2.60])
33
define(_CLIENT_VERSION_MAJOR, 0)
44
define(_CLIENT_VERSION_MINOR, 12)
55
define(_CLIENT_VERSION_REVISION, 1)
6-
define(_CLIENT_VERSION_BUILD, 6)
6+
define(_CLIENT_VERSION_BUILD, 7)
77
define(_CLIENT_VERSION_IS_RELEASE, true)
88
define(_COPYRIGHT_YEAR, 2018)
99
AC_INIT([Nyx Core],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION],[https://github.com/nyxpay/nyx/issues],[nyx])

src/chainparams.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,10 @@ class CMainParams : public CChainParams {
141141
boost::assign::map_list_of
142142
( 175, uint256S("0x0000008324b22109a4cd33aa15181a81e13b0ed6b4724fd4b0b9355637a65058"))
143143
( 5175, uint256S("0x000000000002b5b8886acc2c0613f871e1eff192c68bde64fded61a337652065"))
144-
( 7175, uint256S("0x000000000414eefe72278ca920180ab474a40142e8670f637051ce9161639458"))
145-
( 10060, uint256S("0x00000000062fb058cf59407a9f5b367112d443e2ad7335fd5744efcd9dfdbd93"))
146-
( 10306, uint256S("0x00000000005f0cf9410b0c5700ecc41589d9ef8f771352d4465008ae185e62bb"))
147-
( 10600, uint256S("0x000000000143db6fd3c07ff85bfd59515ac1493ff4abacaaedffbcb121bd3635")),
148-
1518942216, // * UNIX timestamp of last checkpoint block
149-
12481, // * total number of transactions between genesis and last checkpoint
144+
( 10600, uint256S("0x000000000143db6fd3c07ff85bfd59515ac1493ff4abacaaedffbcb121bd3635"))
145+
( 16645, uint256S("0x00000000029e0335414abd74bacbddc4c971589517aaced8a022cfb936454e62")),
146+
1519198542, // * UNIX timestamp of last checkpoint block
147+
20112, // * total number of transactions between genesis and last checkpoint
150148
// (the tx=... number in the SetBestChain debug.log lines)
151149
1000 // * estimated number of transactions per day after checkpoint
152150
};

src/chainparamsseeds.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@
88
* IPv4 as well as onion addresses are wrapped inside a IPv6 address accordingly.
99
*/
1010
static SeedSpec6 pnSeed6_main[] = {
11-
{{0x2a,0x0b,0x70,0x80,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xc0,0x58}, 4330},
12-
{{0x2a,0x0b,0x70,0x80,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xef,0x9b}, 4330},
13-
{{0x2a,0x0b,0x70,0x80,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x72,0x33}, 4330},
14-
{{0x2a,0x0b,0x70,0x80,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xbc,0xee}, 4330},
15-
{{0x2a,0x0b,0x70,0x80,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xd4,0x1e}, 4330},
16-
{{0x2a,0x0b,0x70,0x80,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x24,0x48}, 4330}
11+
1712
};
1813

1914
static SeedSpec6 pnSeed6_test[] = {

src/clientversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#define CLIENT_VERSION_MAJOR 0
1818
#define CLIENT_VERSION_MINOR 12
1919
#define CLIENT_VERSION_REVISION 1
20-
#define CLIENT_VERSION_BUILD 6
20+
#define CLIENT_VERSION_BUILD 7
2121

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

src/masternode-payments.cpp

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -561,27 +561,30 @@ bool CMasternodeBlockPayees::IsTransactionValid(const CTransaction& txNew)
561561

562562
// if we don't have at least MNPAYMENTS_SIGNATURES_REQUIRED signatures on a payee, approve whichever is the longest chain
563563
if(nMaxSignatures < MNPAYMENTS_SIGNATURES_REQUIRED) return true;
564-
565-
BOOST_FOREACH(CMasternodePayee& payee, vecPayees) {
566-
if (payee.GetVoteCount() >= MNPAYMENTS_SIGNATURES_REQUIRED) {
567-
BOOST_FOREACH(CTxOut txout, txNew.vout) {
568-
if (payee.GetPayee() == txout.scriptPubKey && nMasternodePayment == txout.nValue) {
569-
LogPrint("mnpayments", "CMasternodeBlockPayees::IsTransactionValid -- Found required payment\n");
570-
return true;
571-
}
572-
}
573-
574-
CTxDestination address1;
575-
ExtractDestination(payee.GetPayee(), address1);
576-
CBitcoinAddress address2(address1);
577-
578-
if(strPayeesPossible == "") {
579-
strPayeesPossible = address2.ToString();
580-
} else {
581-
strPayeesPossible += "," + address2.ToString();
564+
565+
BOOST_FOREACH (CMasternodePayee& payee, vecPayees) {
566+
bool MasternodePaymentFound = false;
567+
BOOST_FOREACH (CTxOut txout, txNew.vout) {
568+
if (payee.GetPayee() == txout.scriptPubKey) {
569+
if(txout.nValue >= nMasternodePayment)
570+
MasternodePaymentFound = true;
571+
else
572+
LogPrintf("Masternode payment is out of range. Paid=%f Min=%f\n", (float)txout.nValue/COIN, (float)nMasternodePayment/COIN);
582573
}
583574
}
584-
}
575+
576+
if (MasternodePaymentFound) return true;
577+
578+
CTxDestination address1;
579+
ExtractDestination(payee.GetPayee(), address1);
580+
CBitcoinAddress address2(address1);
581+
582+
if (strPayeesPossible == "") {
583+
strPayeesPossible = address2.ToString();
584+
} else {
585+
strPayeesPossible += "," + address2.ToString();
586+
}
587+
}
585588

586589
LogPrintf("CMasternodeBlockPayees::IsTransactionValid -- ERROR: Missing required payment, possible payees: '%s', amount: %f NYX\n", strPayeesPossible, (float)nMasternodePayment/COIN);
587590
return false;

0 commit comments

Comments
 (0)