k=KeyPair::fromEncryptedSeed(&encseed,QInputDialog::getText(this,"Enter Password","Enter the wallet's passphrase",QLineEdit::Password).toStdString());
if(obj["ethaddr"].type()==js::str_type)
{
Addressa(obj["ethaddr"].get_str());
Addressb=k.address();
if(a!=b)
{
if(QMessageBox::warning(this,"Password Wrong","Could not import the secret key: the password you gave appears to be wrong.",QMessageBox::Retry,QMessageBox::Cancel)==QMessageBox::Cancel)
QMessageBox::warning(this,"Already Have Key","Could not import the secret key: we already own this account.");
}
KeyPairk=m_keyManager.presaleSecret(dev::contentsString(s.toStdString()),[&](bool){returnQInputDialog::getText(this,"Enter Password","Enter the wallet's passphrase",QLineEdit::Password).toStdString();});
// cnote << "Exception while importing block. Someone (Jeff? That you?) seems to be giving us dodgy blocks!";// << LogTag::Error << diagnostic_information(ex);
if(m_onBad)
m_onBad(ex);
// NOTE: don't reimport since the queue should guarantee everything in the right order.
// Can't continue - chain bad.
badBlocks.push_back(block.verified.info.hash());
}
}while(false);
}
{
do{
try
{
// Nonce & uncle nonces already verified in verification thread at this point.
// cnote << "Exception while importing block. Someone (Jeff? That you?) seems to be giving us dodgy blocks!";// << LogTag::Error << diagnostic_information(ex);
if(m_onBad)
m_onBad(ex);
// NOTE: don't reimport since the queue should guarantee everything in the right order.
Signal<>m_onReady;///< Called when a subsequent call to import transactions will return a non-empty container. Be nice and exit fast.
Signal<ImportResult,h256const&,h512const&>m_onImport;///< Called for each import attempt. Arguments are result, transaction id an node id. Be nice and exit fast.
Signal<h256const&>m_onReplaced;///< Called whan transction is dropped during a call to import() to make room for another transaction.
unsignedm_limit;///< Max number of pending transactions
unsignedm_futureLimit;///< Max number of future transactions
unsignedm_futureSize=0;///< Current number of future transactions