src/TAO/Ledger/tritium_minter.cpp
bool TritiumMinter::FindLastStake(const uint256_t& hashGenesis, uint512_t& hashLast)
        {
            if(LLD::Ledger->ReadStake(hashGenesis, hashLast))
                return true;

            /* If last stake is not directly available, search for it */
            Transaction tx;
            if(TAO::Ledger::FindLastStake(hashGenesis, tx))
            {
                /* Update the Ledger with found last stake */
                hashLast = tx.GetHash();

                return true;
            }

            return false;
        }
/** Retrieves the most recent stake transaction for a user account. */
Retrieves the most recent stake transaction for a user account.
Retrieves the most recent stake transaction for a user account .
bool TritiumMinter::FindLastStake(const uint256_t& hashGenesis, uint512_t& hashLast)
        {
            if(LLD::Ledger->ReadStake(hashGenesis, hashLast))
                return true;
            Transaction tx;
            if(TAO::Ledger::FindLastStake(hashGenesis, tx))
            {
                hashLast = tx.GetHash();
                return true;
            }
            return false;
        }
bool TritiumMinter :: FindLastStake ( const uint256_t & hashGenesis , uint512_t & hashLast ) { if ( LLD :: Ledger -> ReadStake ( hashGenesis , hashLast ) ) return true ; Transaction tx ; if ( TAO :: Ledger :: FindLastStake ( hashGenesis , tx ) ) { hashLast = tx . GetHash ( ) ; return true ; } return false ; }
Retrieves the most recent stake transaction for a user account.
Retrieves the most recent stake transaction for a user account .
/* If last stake is not directly available, search for it */ /* Update the Ledger with found last stake */