aboutsummaryrefslogtreecommitdiff
path: root/src/addrdb.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-07-28 20:00:23 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-07-30 11:21:51 +0200
commitfa384fdd0b7af73d81fa9619c5fba779452cd2af (patch)
tree916e3054782a7188df547399f4efe191dca415d1 /src/addrdb.h
parent4b1fb50def0dea0cd320bc43c12d9a12edde0390 (diff)
downloadbitcoin-fa384fdd0b7af73d81fa9619c5fba779452cd2af.tar.xz
Ignore banlist.dat
This also allows to remove the "dirty" argument, which can now be deduced from the return value of Read().
Diffstat (limited to 'src/addrdb.h')
-rw-r--r--src/addrdb.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/addrdb.h b/src/addrdb.h
index 399103c991..1e0ccb1f60 100644
--- a/src/addrdb.h
+++ b/src/addrdb.h
@@ -76,7 +76,7 @@ public:
static bool Read(CAddrMan& addr, CDataStream& ssPeers);
};
-/** Access to the banlist databases (banlist.json and banlist.dat) */
+/** Access to the banlist database (banlist.json) */
class CBanDB
{
private:
@@ -95,11 +95,9 @@ public:
* Read the banlist from disk.
* @param[out] banSet The loaded list. Set if `true` is returned, otherwise it is left
* in an undefined state.
- * @param[out] dirty Indicates whether the loaded list needs flushing to disk. Set if
- * `true` is returned, otherwise it is left in an undefined state.
* @return true on success
*/
- bool Read(banmap_t& banSet, bool& dirty);
+ bool Read(banmap_t& banSet);
};
/**