mirror of
https://github.com/monero-project/monero.git
synced 2025-08-19 00:37:54 -04:00
wallet: make ringdb an object with database state
This commit is contained in:
parent
df6fad4c62
commit
db10dd6d83
6 changed files with 189 additions and 172 deletions
|
@ -1312,7 +1312,7 @@ bool simple_wallet::print_ring(const std::vector<std::string> &args)
|
|||
std::vector<uint64_t> ring;
|
||||
try
|
||||
{
|
||||
if (m_wallet->get_ring(m_wallet->get_ring_database(), key_image, ring))
|
||||
if (m_wallet->get_ring(key_image, ring))
|
||||
{
|
||||
std::stringstream str;
|
||||
for (const auto &x: ring)
|
||||
|
@ -1466,7 +1466,7 @@ bool simple_wallet::save_known_rings(const std::vector<std::string> &args)
|
|||
try
|
||||
{
|
||||
LOCK_IDLE_SCOPE();
|
||||
m_wallet->find_and_save_rings(m_wallet->get_ring_database());
|
||||
m_wallet->find_and_save_rings();
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue