From 377a1a96800176fbcf2cde5777f921752b0bb0a8 Mon Sep 17 00:00:00 2001 From: devhyper <57877914+devhyper@users.noreply.github.com> Date: Fri, 1 Apr 2022 10:27:35 -0700 Subject: Integrate P2Pool --- src/main/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main') diff --git a/src/main/main.cpp b/src/main/main.cpp index a6a77a5b..db339d71 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -79,6 +79,7 @@ // IOS exclusions #ifndef Q_OS_IOS #include "daemon/DaemonManager.h" +#include "p2pool/P2PoolManager.h" #endif #if defined(Q_OS_WIN) @@ -401,6 +402,8 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw #ifndef Q_OS_IOS qmlRegisterUncreatableType("moneroComponents.DaemonManager", 1, 0, "DaemonManager", "DaemonManager can't be instantiated directly"); + qmlRegisterUncreatableType("moneroComponents.P2PoolManager", 1, 0, "P2PoolManager", + "P2PoolManager can't be instantiated directly"); #endif qmlRegisterUncreatableType("moneroComponents.AddressBookModel", 1, 0, "AddressBookModel", "AddressBookModel can't be instantiated directly"); @@ -462,7 +465,9 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw // Exclude daemon manager from IOS #ifndef Q_OS_IOS DaemonManager daemonManager; + P2PoolManager p2poolManager; engine.rootContext()->setContextProperty("daemonManager", &daemonManager); + engine.rootContext()->setContextProperty("p2poolManager", &p2poolManager); #endif engine.rootContext()->setContextProperty("isWindows", isWindows); -- cgit v1.2.3