-
decenteroven[m]
Let's say after you get 25 words for monero in ledger nano and buyed 30 monero and 30 monero in ledger nano. For example, if I enter 24 words without entering 25 words into Ledger nano, can I reach 30 monero or not?
-
ammml
hi
-
ammml
arguments << "--non-interactive" << "--start_mining" << currentWallet.address;
-
ammml
is this ok
-
ammml
error: use of undeclared identifier 'appWindow'
-
ammml
arguments << "--non-interactive" << "--start_mining" << appWindow.currentWallet;
-
moneromoooo
grep appWindow in that file, see if it's accessed through some other variable.
-
ammml
no is not accessed
-
ammml
on DaemonManager.cpp
-
ammml
thats why i tried to insert on header file first
-
ammml
i think that the file is main.qml
-
ammml
-
plowsof
-
ammml
how to give current address to daemon for mining
-
ammml
without clicking anywhere
-
ammml
this can be done in another way
-
ammml
I'm testing what will work
-
selsta
11:12 <ammml> arguments << "--non-interactive" << "--start_mining" << currentWallet.address; <-- like I said already, currentWallet.address is QML, you can't access it like this from C++
-
selsta
12:13 <ammml> i added like this too "const QString ¤tWallet.address = "","
-
selsta
this is also wrong, you have to call it something like `const QString &walletAddress`
-
selsta
you can't have a dot in the variable name
-
ammml
first of all i need to add here arguments << "--non-interactive";
-
ammml
or arguments << "--start_mining" << const QString &walletAddress;
-
ammml
which is the right var for current wallet address
-
selsta
both are the same variable
-
selsta
test it with a hardcoded address first, make sure it works and then replace the hardcoded address with a variable
-
ammml
hardcoded address work
-
ammml
this needs "" const QString &walletAddress
-
ammml
arguments << "--non-interactive" << "--start_mining" << const QString &walletAddress;
-
selsta
just do it the same way as bootstrapNodeAddress
-
selsta
when used in code it's only written as `bootstrapNodeAddress` and not `const QString &bootstrapNodeAddress`
-
ammml
ok
-
ammml
if i do a grep -r walletAddress
-
ammml
no results
-
ammml
are u sure that is the right var
-
ammml
arguments << "--non-interactive" << "--start_mining" << walletAddress;
-
ammml
selsta i must find current address and after insert it on new var ??
-
moneromoooo
You must find how to reach the wallet address from the context of the code that build arguments.
-
moneromoooo
Looks like it's not walletAddress or appWindow.
-
selsta
walletAddress is just a variable name
-
selsta
you can name it whatever you want
-
selsta
ammml: search for `git grep "start("`
-
selsta
edit `daemonManager.start(flags, persistentSettings.nettype, persistentSettings.blockchainDataDir, bootstrapNodeAddress, noSync, persistentSettings.pruneBlockchain);`
-
selsta
to `daemonManager.start(flags, persistentSettings.nettype, persistentSettings.blockchainDataDir, currentWallet.address, bootstrapNodeAddress, noSync, persistentSettings.pruneBlockchain);`
-
ammml
var address = currentWallet.address(subaddrAccount, subaddrIndex)
-
ammml
ok
-
selsta
don't edit it exactly like I did, you have to edit it in a way that it matches your code
-
selsta
and you have to edit all occurrences of `daemonManager.start(`
-
ammml
i had this code "if (appWindow.currentWallet) walletManager.startMining(appWindow.currentWallet.address(0, 0), 1, true, false);"
-
ammml
but dont work on android
-
ammml
works on windows,linux but for some reason not on android
-
ammml
thats why i'm trying another way
-
ammml
this code i insert on main.qml and works fine on windows,linux
-
ammml
selsta expect main.qml change i need this too "arguments << "--non-interactive" << "--start_mining" << walletAddress;"
-
selsta
you have to edit src/daemon/DaemonManager.cpp, src/daemon/DaemonManager.h and all QML files that call `daemonManager.start(`
-
ammml
only this call daemonmanager.start pages/Mining.qml
-
ammml
on DaemonManager.h is ok this
paste.debian.net/1259740
-
selsta
yes seems ok
-
ammml
exactly the same on cpp ?
-
ammml
-
ammml
maybe this is needed const QString &walletAddress = "",
-
selsta
yes