void EtherIPC::handleGetAccounts() { QJsonValue jv; if ( !readReply(jv) ) { return bail(); } QJsonArray refs = jv.toArray(); foreach( QJsonValue r, refs ) { const QString hash = r.toString("INVALID"); fAccountList.append(AccountInfo(hash, QString(), 0)); } emit getAccountsDone(fAccountList); done(); }
void EtherIPC::handleGetAccounts() { QJsonValue jv; if ( !readReply(jv) ) { return bail(); } QJsonArray refs = jv.toArray(); foreach( QJsonValue r, refs ) { const QString hash = r.toString("INVALID"); fAccountList.append(AccountInfo(hash, QString(), 0)); } emit getAccountsDone(fAccountList); // TODO: figure out a way to get account transaction history newFilter(); done(); }