Do not resurrect staking transactions and lose stake age when no block won

This commit is contained in:
Michael Toutonghi
2018-05-22 15:53:56 -07:00
parent cd230e37ff
commit ec872d3a55
2 changed files with 7 additions and 4 deletions

View File

@@ -1330,7 +1330,7 @@ bool verusCheckPOSBlock(int32_t slowflag, CBlock *pblock, int32_t height)
strcpy(voutaddr, CBitcoinAddress(voutaddress).ToString().c_str());
strcpy(destaddr, CBitcoinAddress(destaddress).ToString().c_str());
strcpy(cbaddr, CBitcoinAddress(cbaddress).ToString().c_str());
if ( !strcmp(destaddr,voutaddr) && strcmp(destaddr,cb) )
if ( !strcmp(destaddr,voutaddr) && (strcmp(destaddr,cb) || (height < 6480)) )
{
isPOS = true;
}