-
ammml
hi
-
ammml
how to output on qml if daemon is not starting for any reason
-
ammml
console.log (".....")
-
selsta
ammml: which OS are you using?
-
ammml
android
-
selsta
you can print stuff with console.log
-
selsta
also make sure to increase the log level in settings -> log
-
ammml
on dameonmanager "arguments <<--log-level 4>>"
-
ammml
how to c on screen this from the begining
-
selsta
c?
-
ammml
see
-
selsta
malinero: did you ever try getting a local node working on androdi?
-
selsta
android
-
ammml
on termux local node works
-
ammml
im trying local node to start without intervention from user
-
selsta
I understand what you are trying to do but I can't help
-
plowsof
Not a GUI problem ammml,ofrnxmrcan help with android-termux-node
github.com/nahuhh/android-termux-monero-node
-
selsta
they want that the gui starts monerod on android
-
selsta
like on desktop
-
selsta
but yes it's probably better to let termux handle it and only connect to it from the GUI
-
plowsof
ah sorry i didn't read fully
-
ammml
how gui can output daemon output
-
plowsof
may i ask what android device you are using?
-
ammml
redmi
-
ammml
"arguments <<--log-level 4>>" to have it on screen without need to click node etc
-
plowsof
monero-gui is a desktop wallet first, i have never tested the monero-gui in android myself and this sounds like a bug report?
-
selsta
it's not a bug report
-
selsta
we don't support local node on android
-
selsta
if someone wants to add it fine but it's not officially supported yet
-
plowsof
ah ok thanks, then using termux local node with logfiles is fine
-
ammml
is this the right qml
-
ammml
"arguments << "--start-mining" << currentWallet.address;"
-
selsta
i don't know what this is supposed to be
-
ammml
start mining directly from monerod
-
selsta
this doesn't look like valid qml to me
-
ammml
arguments << "--bootstrap-daemon-address" << bootstrapNodeAddress;
-
ammml
this is valid
-
selsta
this isn't QML
-
selsta
that's C++
-
ammml
sorry really
-
ammml
is on dameonmanager.cpp
-
selsta
yes that's C++, as seen by the .cpp extension
-
selsta
QML is in .qml files
-
ammml
but this must work
-
selsta
no
-
ammml
why?
-
selsta
you can't mix C++ and QML
-
selsta
currentWallet.address is from QML, you can't simply add that to C++ code
-
ammml
here is happening
-
ammml
arguments << "--bootstrap-daemon-address" << bootstrapNodeAddress;
-
selsta
yes because bootstrapNodeAddress is valid variable
-
selsta
bool DaemonManager::start(const QString &flags, NetworkType::Type nettype, const QString &dataDir, const QString &bootstrapNodeAddress, bool noSync /* = false*/, bool pruneBlockchain /* = false*/)
-
selsta
see bootstrapNodeAddress is allowed here
-
ammml
how to add this var currentWallet.address
-
selsta
why not try to hardcode the address first and see if it works?
-
ammml
it works hardcoded
-
selsta
you have to edit the function parameter for start and update all occurrences where start is called from qml code
-
ammml
bool DaemonManager::start(const QString &flags
-
ammml
this one
-
selsta
yes
-
ammml
here DaemonManager.h
-
selsta
yes
-
selsta
and every occurrence where start it called from QML