Do not apply overwinter/sapling consensus rules to block 0
This commit is contained in:
@@ -690,7 +690,7 @@ UniValue createrawtransaction(const UniValue& params, bool fHelp, const CPubKey&
|
||||
}
|
||||
|
||||
if (params.size() > 3 && !params[3].isNull()) {
|
||||
const bool overwinter = true;
|
||||
const bool overwinter = nextBlockHeight>=1 ? true : false;
|
||||
if (overwinter) { // NetworkUpgradeActive(nextBlockHeight, Params().GetConsensus(), Consensus::UPGRADE_OVERWINTER)) {
|
||||
int64_t nExpiryHeight = params[3].get_int64();
|
||||
if (nExpiryHeight < 0 || nExpiryHeight >= TX_EXPIRY_HEIGHT_THRESHOLD) {
|
||||
|
||||
Reference in New Issue
Block a user