Do key import serially so we only have to rescan once
This commit is contained in:
@@ -191,6 +191,8 @@ void RPC::importZPrivKey(QString addr, bool rescan, const std::function<void(jso
|
||||
{"method", "z_importkey"},
|
||||
{"params", { addr.toStdString(), (rescan? "yes" : "no") }},
|
||||
};
|
||||
|
||||
qDebug() << QString::fromStdString(payload.dump());
|
||||
|
||||
doRPC(payload, cb);
|
||||
}
|
||||
@@ -204,6 +206,7 @@ void RPC::importTPrivKey(QString addr, bool rescan, const std::function<void(jso
|
||||
{"params", { addr.toStdString(), (rescan? "yes" : "no") }},
|
||||
};
|
||||
|
||||
qDebug() << QString::fromStdString(payload.dump());
|
||||
doRPC(payload, cb);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user