Fix non-final sequence and nLockTime

This commit is contained in:
miketout
2018-11-01 11:08:20 -07:00
parent a9774a32f7
commit 4ac64cd2a0
2 changed files with 4 additions and 4 deletions

View File

@@ -4487,7 +4487,7 @@ UniValue z_shieldcoinbase(const UniValue& params, bool fHelp)
// (used if no Sapling addresses are involved)
CMutableTransaction contextualTx = CreateNewContextualCMutableTransaction(
Params().GetConsensus(), nextBlockHeight);
contextualTx.nLockTime = nextBlockHeight;
contextualTx.nLockTime = chainActive.LastTip()->GetHeight();
if (contextualTx.nVersion == 1) {
contextualTx.nVersion = 2; // Tx format should support vjoinsplits