diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-03-04 13:30:40 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-03-16 10:32:54 +0000 |
commit | 504428ab4a7aa7773832acdc3de0baad22d6b9b7 (patch) | |
tree | e0c46debfa497a3110e5fce39c0729f2c5f4aaf2 /src/wallet/ringdb.h | |
parent | wallet: add a set_ring command (diff) | |
download | monero-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.h | 2 |
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); |