Skip to content

Commit

Permalink
Merge pull request #748 from peercoin/develop
Browse files Browse the repository at this point in the history
0.13.1 to master
  • Loading branch information
peerchemist committed Mar 18, 2024
2 parents 5ad0074 + 57106a1 commit d1a4676
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2024)
define(_PEERCOIN_VERSION_MAJOR, 0)
define(_PEERCOIN_VERSION_MINOR, 13)
define(_PEERCOIN_VERSION_REVISION, 0)
define(_PEERCOIN_VERSION_REVISION, 1)
define(_PEERCOIN_VERSION_BUILD, 0)
define(_PEERCOIN_VERSION_RC, 0)
define(_COPYRIGHT_HOLDERS,[The %s developers])
Expand Down
2 changes: 1 addition & 1 deletion contrib/macdeploy/detached-sig-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fi
rm -rf ${TEMPDIR}
mkdir -p ${TEMPDIR}

${SIGNAPPLE} sign -f --detach "${TEMPDIR}/${OUTROOT}" "$@" "${BUNDLE}"
${SIGNAPPLE} sign --hardened-runtime -f --detach "${TEMPDIR}/${OUTROOT}" "$@" "${BUNDLE}"

tar -C "${TEMPDIR}" -czf "${OUT}" .
rm -rf "${TEMPDIR}"
Expand Down
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ namespace { // Variables internal to initialization process only
int nMaxConnections;
int nUserMaxConnections;
int nFD;
ServiceFlags nLocalServices = ServiceFlags(NODE_NETWORK_LIMITED | NODE_WITNESS);
ServiceFlags nLocalServices = ServiceFlags(NODE_NETWORK | NODE_WITNESS);
int64_t peer_connect_timeout;
std::set<BlockFilterType> g_enabled_filter_types;

Expand Down
13 changes: 3 additions & 10 deletions src/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const unsigned int nProtocolV09TestSwitchTime = 1581940800; // Mon 17 Feb 12:00:
const unsigned int nProtocolV10SwitchTime = 1635768000; // Mon 1 Nov 12:00:00 UTC 2021
const unsigned int nProtocolV10TestSwitchTime = 1625140800; // Thu 1 Jul 12:00:00 UTC 2021
// Protocol switch time for v12 kernel protocol
const unsigned int nProtocolV12SwitchTime = 1681732800; // Mon 17 Apr 12:00:00 UTC 2023
const unsigned int nProtocolV12TestSwitchTime = 1669636800; // Mon 28 Nov 12:00:00 UTC 2022
const unsigned int nProtocolV12SwitchTime = 1700276331; // Sat 18 Nov 02:58:51 UTC 2023
const unsigned int nProtocolV12TestSwitchTime = 1671060214; // Wed 14 Dec 11:23:34 UTC 2022

// Hard checkpoints of stake modifiers to ensure they are deterministic
static std::map<int, unsigned int> mapStakeModifierCheckpoints =
Expand Down Expand Up @@ -156,14 +156,7 @@ bool IsProtocolV12(const CBlockIndex* pindexPrev)
if (Params().NetworkIDString() == CBaseChainParams::REGTEST)
return true;

if (pindexPrev->nTime < (Params().NetworkIDString() != CBaseChainParams::MAIN ? nProtocolV12TestSwitchTime : nProtocolV12SwitchTime))
return false;

if ((Params().NetworkIDString() == CBaseChainParams::MAIN && IsSuperMajority(4, pindexPrev, 900, 1000)) ||
(Params().NetworkIDString() != CBaseChainParams::MAIN && IsSuperMajority(4, pindexPrev, 90, 100)))
return true;

return false;
return (pindexPrev->nTime >= (Params().NetworkIDString() != CBaseChainParams::MAIN ? nProtocolV12TestSwitchTime : nProtocolV12SwitchTime));
}

// Get the last stake modifier and its generation time from a given block
Expand Down

0 comments on commit d1a4676

Please sign in to comment.