mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-14 07:03:29 +01:00
WalletAPI: only allow trusted daemon when importing key images
This commit is contained in:
parent
8a9bbd26d3
commit
d58700e003
@ -889,6 +889,11 @@ bool WalletImpl::exportKeyImages(const string &filename)
|
|||||||
|
|
||||||
bool WalletImpl::importKeyImages(const string &filename)
|
bool WalletImpl::importKeyImages(const string &filename)
|
||||||
{
|
{
|
||||||
|
if (!trustedDaemon()) {
|
||||||
|
m_status = Status_Error;
|
||||||
|
m_errorString = tr("Key images can only be imported with a trusted daemon");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
uint64_t spent = 0, unspent = 0;
|
uint64_t spent = 0, unspent = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user