src/TAO/Ledger/tritium_minter.cpp
bool TritiumMinter::CheckUser()
        {
            /* Check whether unlocked account available. */
            if(TAO::API::users->Locked())
            {
                debug::log(0, FUNCTION, "No unlocked account available for staking");
                return false;
            }

            /* Check that the account is unlocked for staking */
            if(!TAO::API::users->CanStake())
            {
                debug::log(0, FUNCTION, "Account has not been unlocked for staking");
                return false;
            }

            return true;
        }
/* Verify user account unlocked for minting. */
Verify user account unlocked for minting.
Verify user account unlocked for minting .
bool TritiumMinter::CheckUser()
        {
            if(TAO::API::users->Locked())
            {
                debug::log(0, FUNCTION, "No unlocked account available for staking");
                return false;
            }
            if(!TAO::API::users->CanStake())
            {
                debug::log(0, FUNCTION, "Account has not been unlocked for staking");
                return false;
            }
            return true;
        }
bool TritiumMinter :: CheckUser ( ) { if ( TAO :: API :: users -> Locked ( ) ) { debug :: log ( 0 , FUNCTION , " " ) ; return false ; } if ( ! TAO :: API :: users -> CanStake ( ) ) { debug :: log ( 0 , FUNCTION , " " ) ; return false ; } return true ; }
Verify user account unlocked for minting.
Verify user account unlocked for minting .
/* Check whether unlocked account available. */ /* Check that the account is unlocked for staking */