-
br-m
<jpk68:matrix.org> selsta: How do you suggest I implement a sort of status label in the GUI for the I2P router's up/down status?
-
br-m
<jpk68:matrix.org> It seems the best way is to make a C++ function invokable from Qt that uses QTcpSocket to ping the SAM bridge
-
br-m
<jpk68:matrix.org> I'm not completely sure though, and it might be a pain if we don't use Qt networking stuff already
-
br-m
<jpk68:matrix.org> This is what it looks like right now
-
br-m
-
selsta
yes, we don't use Qt networking so I'd prefer not adding that dependencies
-
selsta
the epee http client might work?
-
selsta
Also I'm not really sure how the integration looks like, what exactly happens once you select I2P?
-
br-m
<ralphcc:zano.org> Hi. Does anyone know how to resolve an error when attempting to Solo Mine on the Linux GUI?
-
br-m
<ralphcc:zano.org> The log seems to indicate it cannot “find” the daemon despite running a fully synced local node. I have screenshots and the full log in case it helps shed some light.
-
br-m
<ofrnxmr:xmr.mx> sure, send screenshots
-
br-m
-
br-m
-
br-m
-
selsta
.merge+ 4623
-
xmr-pr
Added
-
br-m
<jpk68:matrix.org> selsta: It just restarts the daemon with the SAM flag
-
br-m
<ofrnxmr:xmr.mx> fwiw, i think the sam flag should probable go into the gui config file
-
br-m
<jpk68:matrix.org> Maybe, but also, it only works in its current state with a local full node
-
br-m
<jpk68:matrix.org> SAM is integrated only into the daemon (not wallet2, etc.)
-
br-m
<ofrnxmr:xmr.mx> yes, but other flags are in gui config
-
br-m
<ofrnxmr:xmr.mx> like pruneBlockchain=true
-
br-m
<jpk68:matrix.org> Makes sense, I didn't know that :)
-
br-m
<ofrnxmr:xmr.mx> blockchainDataDir etc
-
br-m
<jpk68:matrix.org> selsta: SAM uses raw TCP instead of HTTP. Would Boost work better for that then?
-
br-m
<ofrnxmr:xmr.mx> yeah, i only learned about it when looking into it for another user
-
br-m
<jpk68:matrix.org> FWIW the header I'm using currently is <QTcpSocket>
-
selsta
ok, but if it restarts the daemon with sam flag i don't know if it makes sense to add sam logic into the GUI, the daemon should say if it works, no need to manually do raw TCP
-
br-m
<jpk68:matrix.org> No, it's for giving up/down status of the I2P router
-
selsta
i know but why is that info not given by daemon
-
br-m
<jpk68:matrix.org> How would it be given from the daemon and displayed in a text label (see above screenshot)? My understanding is that would require a new RPC endpoint or something
-
br-m
<jpk68:matrix.org> The current commit I have for it on my fork works functionally perfectly fine (using Qt sockets)
-
selsta
I feel like there is a layer mismatch here. The daemon is the one communicating with SAM, so it's the daemon that should say if it can access to router or not. Adding custom TCP code to the GUI is not the right solution, especially since other projects would have to copy this.
-
selsta
And this isn't taking into account that I'm currently working on Qt6 upgrade where we would slim down unused packages.
-
br-m
<jpk68:matrix.org> For context, this is the code in question
-
br-m
-
br-m
<jpk68:matrix.org> It does not communicate over SAM, it literally just sees whether the socket is open
-
br-m
<jpk68:matrix.org> If you're just using the daemon by itself, you can already see through the error messages if the SAM bridge is not open. However, the daemon logs are somewhat opaque in the GUI (by design) and it would be nice to have a friendly, graphical way to see router status. As is mentioned in the CCS :)
-
selsta
but isn't that also misleading? it just checks a port, it does not even tell if it is a SAM router running?
-
selsta
adding a huge Qt depedency (network) for a port check seems like a waste
-
selsta
I would prefer if the daemon itself would give a status message to the gui somehow, I can't tell you the best design for it yet
-
selsta
dependency
-
br-m
<jpk68:matrix.org> It checks the address + port combo provided by the user. I agree with you in that we shouldn't add more dependencies > <selsta> but isn't that also misleading? it just checks a port, it does not even tell if it is a SAM router running?
-
br-m
<jpk68:matrix.org> Since we already use Boost.Asio that might be a bit better (?)
-
selsta
we don't use any boost code in monero-gui currently but it's a dependency from monero itself
-
selsta
also not ideal hmm
-
br-m
<jpk68:matrix.org> I would prefer not to use the POSIX API, lol
-
br-m
<jpk68:matrix.org> Looks like the epee thing worked
-
selsta
.merge+ 4625
-
xmr-pr
Added
-
tobtoht
.merges
-
xmr-pr
4623 4625
-
tobtoht
done
-
selsta
.merge+ 4626
-
xmr-pr
Added
-
selsta
luigi1111: please also merge ^ and tag v0.18.5.1 gui
-
br-m
<plowsof:matrix.org> 🚀
-
luigi1111
.merges
-
xmr-pr
4626