|
|
@ -931,8 +931,8 @@ unsigned int LimitOrphanTxSize(unsigned int nMaxOrphans) EXCLUSIVE_LOCKS_REQUIRE |
|
|
|
|
|
|
|
bool IsStandardTx(const CTransaction& tx, string& reason, const int nHeight) |
|
|
|
{ |
|
|
|
bool overwinterActive = NetworkUpgradeActive(nHeight, Params().GetConsensus(), Consensus::UPGRADE_OVERWINTER); |
|
|
|
bool saplingActive = NetworkUpgradeActive(nHeight, Params().GetConsensus(), Consensus::UPGRADE_SAPLING); |
|
|
|
bool overwinterActive = true; //NetworkUpgradeActive(nHeight, Params().GetConsensus(), Consensus::UPGRADE_OVERWINTER);
|
|
|
|
bool saplingActive = true; //NetworkUpgradeActive(nHeight, Params().GetConsensus(), Consensus::UPGRADE_SAPLING);
|
|
|
|
|
|
|
|
if (saplingActive) { |
|
|
|
// Sapling standard rules apply
|
|
|
@ -1220,9 +1220,9 @@ bool ContextualCheckTransaction(int32_t slowflag,const CBlock *block, CBlockInde |
|
|
|
const int dosLevel, |
|
|
|
bool (*isInitBlockDownload)(),int32_t validateprices) |
|
|
|
{ |
|
|
|
bool overwinterActive = NetworkUpgradeActive(nHeight, Params().GetConsensus(), Consensus::UPGRADE_OVERWINTER); |
|
|
|
bool saplingActive = NetworkUpgradeActive(nHeight, Params().GetConsensus(), Consensus::UPGRADE_SAPLING); |
|
|
|
bool isSprout = !overwinterActive; |
|
|
|
bool overwinterActive = true; //NetworkUpgradeActive(nHeight, Params().GetConsensus(), Consensus::UPGRADE_OVERWINTER);
|
|
|
|
bool saplingActive = true; //NetworkUpgradeActive(nHeight, Params().GetConsensus(), Consensus::UPGRADE_SAPLING);
|
|
|
|
bool isSprout = false; //!overwinterActive;
|
|
|
|
|
|
|
|
// If Sprout rules apply, reject transactions which are intended for Overwinter and beyond
|
|
|
|
if (isSprout && tx.fOverwintered) { |
|
|
@ -5215,7 +5215,7 @@ bool ContextualCheckBlock(int32_t slowflag,const CBlock& block, CValidationState |
|
|
|
{ |
|
|
|
const int nHeight = pindexPrev == NULL ? 0 : pindexPrev->GetHeight() + 1; |
|
|
|
const Consensus::Params& consensusParams = Params().GetConsensus(); |
|
|
|
bool sapling = NetworkUpgradeActive(nHeight, consensusParams, Consensus::UPGRADE_SAPLING); |
|
|
|
bool sapling = true; //NetworkUpgradeActive(nHeight, consensusParams, Consensus::UPGRADE_SAPLING);
|
|
|
|
|
|
|
|
// Check that all transactions are finalized
|
|
|
|
for (uint32_t i = 0; i < block.vtx.size(); i++) { |
|
|
@ -8209,7 +8209,7 @@ CMutableTransaction CreateNewContextualCMutableTransaction(const Consensus::Para |
|
|
|
mtx.nVersionGroupId = SAPLING_VERSION_GROUP_ID; |
|
|
|
mtx.nVersion = SAPLING_TX_VERSION; |
|
|
|
} else { |
|
|
|
bool isOverwintered = NetworkUpgradeActive(nHeight, consensusParams, Consensus::UPGRADE_OVERWINTER); |
|
|
|
bool isOverwintered = true; //NetworkUpgradeActive(nHeight, consensusParams, Consensus::UPGRADE_OVERWINTER);
|
|
|
|
if (isOverwintered) |
|
|
|
{ |
|
|
|
mtx.fOverwintered = true; |
|
|
|