Exemplo n.º 1
0
    void EtherIPC::handleGetClientVersion() {
        QJsonValue jv;
        if ( !readReply(jv) ) {
            return bail();
        }

        fClientVersion = jv.toString();

        const int vn = parseVersionNum();
        if ( vn > 0 && vn < 100002 ) {
            setError("Gsoil version 1.0.1 and older contain a critical bug! Please update immediately.");
            emit error();
        }

        emit clientVersionChanged(fClientVersion);
        done();
    }
Exemplo n.º 2
0
    void EtherIPC::handleUnlockAccount() {
        QJsonValue jv;
        if ( !readReply(jv) ) {
            return bail();
        }

        const bool result = jv.toBool(false);

        if ( !result ) {
            setError("Unlock account failure");
            if ( parseVersionNum() == 100002 ) {
                fError += " Gsoil v1.0.2 has a bug with unlocking empty password accounts! Consider updating";
            }
            emit error();
        }
        emit unlockAccountDone(result, fActiveRequest.getIndex());
        done();
    }
Exemplo n.º 3
0
 bool EtherIPC::getHardForkReady() const {
     const int vn = parseVersionNum();
     return ( vn >= 104010 );
 }