mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Remove direct bitcoin calls from qt/bantablemodel.cpp
This commit is contained in:
parent
e0b66a3b7c
commit
3034a462a5
5 changed files with 26 additions and 7 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include <interface/node.h>
|
||||
|
||||
#include <addrdb.h>
|
||||
#include <chain.h>
|
||||
#include <chainparams.h>
|
||||
#include <init.h>
|
||||
|
|
@ -105,6 +106,14 @@ class NodeImpl : public Node
|
|||
}
|
||||
return false;
|
||||
}
|
||||
bool getBanned(banmap_t& banmap) override
|
||||
{
|
||||
if (g_connman) {
|
||||
g_connman->GetBanned(banmap);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
int64_t getTotalBytesRecv() override { return g_connman ? g_connman->GetTotalBytesRecv() : 0; }
|
||||
int64_t getTotalBytesSent() override { return g_connman ? g_connman->GetTotalBytesSent() : 0; }
|
||||
size_t getMempoolSize() override { return ::mempool.size(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue