mirror of
https://github.com/monero-project/monero.git
synced 2024-12-24 12:39:59 +00:00
wallet2: prevent importing outputs in a hot wallet
This commit is contained in:
parent
0de1571abd
commit
5b98bebad1
1 changed files with 2 additions and 0 deletions
|
@ -13162,6 +13162,8 @@ size_t wallet2::import_outputs(const std::pair<uint64_t, std::vector<tools::wall
|
||||||
{
|
{
|
||||||
PERF_TIMER(import_outputs);
|
PERF_TIMER(import_outputs);
|
||||||
|
|
||||||
|
THROW_WALLET_EXCEPTION_IF(watch_only(), error::wallet_internal_error, "Hot wallets cannot import outputs");
|
||||||
|
|
||||||
THROW_WALLET_EXCEPTION_IF(outputs.first > m_transfers.size(), error::wallet_internal_error,
|
THROW_WALLET_EXCEPTION_IF(outputs.first > m_transfers.size(), error::wallet_internal_error,
|
||||||
"Imported outputs omit more outputs that we know of");
|
"Imported outputs omit more outputs that we know of");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue