aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/ringdb.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-04 13:30:40 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-16 10:32:54 +0000
commit504428ab4a7aa7773832acdc3de0baad22d6b9b7 (patch)
treee0c46debfa497a3110e5fce39c0729f2c5f4aaf2 /src/wallet/ringdb.h
parentwallet: add a set_ring command (diff)
downloadmonero-504428ab4a7aa7773832acdc3de0baad22d6b9b7.tar.xz
ringdb: use the genesis block as a db name
This will avoid careless forkers polluting the shared database even if they make their own chain. They'll then automatically start using another subdb, and any key-reusing fork of those forks will reuse their subdbs.
Diffstat (limited to 'src/wallet/ringdb.h')
-rw-r--r--src/wallet/ringdb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/ringdb.h b/src/wallet/ringdb.h
index fb6b732a9..2bd1ac149 100644
--- a/src/wallet/ringdb.h
+++ b/src/wallet/ringdb.h
@@ -40,7 +40,7 @@ namespace tools
class ringdb
{
public:
- ringdb(std::string filename);
+ ringdb(std::string filename, const std::string &genesis);
~ringdb();
bool add_rings(const crypto::chacha_key &chacha_key, const cryptonote::transaction_prefix &tx);