-
derpy_bridge
[discord] <Skitzo#0190>: why is it when i try to miine with my gpu it crashes???? amd radeon rx560 4gb ddr5...
-
monican_agent
Hi fluffypony, I was sent here from Telegram in reference to the MyMonero project. Is this yours and are you able to answer some questions about it? I'm trying to incorporate Monero into an existing JavaScript project and it seems like your library would be the ideal (possibly only) solution! I've already incorporated BTC and BCH, and have spent a
-
monican_agent
lot of time with Ethereum and smart contracts, so we could probably skip some of the basics.
-
asymptotically
monican_agent: you might have better luck in the #mymonero channel :)
-
asymptotically
what are you trying to do though?
-
monican_agent
asymptotically I need to be able to: create addresses, including private keys, preferably using a master derivation one (like HD wallets)
-
monican_agent
asymptotically Then I need to be able to create raw transactions, and finally sign them.
-
monican_agent
asymptotically The constraint is that I have to be able to do this using JavaScript only (no dependence on RPC wallet or daemon or external API)
-
asymptotically
i think you need the daemon (or at least a copy of the blockchain) to be able to create a transaction though
-
asymptotically
-
monican_agent
asymptotically If I understand correctly, I'd need to gather transaction outputs in order to generate a new transaction, is that correct? Let's say I'll have access to the transactions somehow (e.g. stored in an offline database). Now I need to use that information to generate a new transaction and then sign it. At some point in the future, that
-
monican_agent
transaction may be posted -- for this I can use RPC, but for the generation and signing of the tx, I can't.
-
monican_agent
asymptotically I've looked at OpenMonero but I don't think it's JavaScript, is it? Am I looking in the wrong place maybe?
-
asymptotically
it's the backend to a wallet service like mymonero, where the server does the hard work (scanning for transactions) but the user still keeps their keys
-
asymptotically
are you able to use WebAssembly? i think you'd want to use exactly the same code to generate your transactions so that you don't accidentally make them stick out
-
monican_agent
asymptotically I'd need to implement this for Node.js
-
monican_agent
asymptotically I believe that Node can use WASM. When I "require" the MyMonero library it reports that WASM is available.
-
monican_agent
asymptotically MyMonero seems okay so far but beyond simply including it I can't find any information on actually using it.
-
gingeropolous
endogenic, ^^
-
monican_agent
There are some unit tests where parameters are listed but I haven't a clue as to what most of them do.
-
gingeropolous
monican_agent, you wanna connect with endogenic . For details on what he/they can offer, checkout his recent chat on monerotalk.
monerotalk.live/paul-shapiro-mymonero
-
gingeropolous
which was awesome btw endogenic! :)
-
monican_agent
gingeropolous Perfect. Doing that right now. Thanks!
-
monican_agent
For reference, here's the library I'm looking at:
github.com/mymonero/mymonero-core-js
-
monican_agent
Seems like it'd be perfect if I can just figure out how to use it properly.
-
xtuh
hello, i'm new to monero. Now i have synced daemon. and i want to try to configure solomining. what is the best option to do that? should i use rpc bind? or its unnesessary for mining blocks?
-
moneromooo
You do not need anything extra. Just run start_mining ADDRESS NTHREADS.
-
moneromooo
monican_agent:
github.com/moneromooo-monero/monero-wallet-generator is probably a good introduction, it's based on mymonero source (from a few years back) and creates keys/addresses.
-
moneromooo
You'd likely not want to use it, just as a starting point for how to use the current mymonero source.
-
xtuh
moneromooo: but i want to get some hashrate from outside. (not shure now, directly or through xmrig-proxy). at this moment i think i need something like
-
xtuh
monerod --max-concurrency=2 --public-node --data-dir=/root/.bitmonero --prep-blocks-threads=4 --p2p-bind-ip=0.0.0.0 --p2p-bind-port=18080 --rpc-bind-port=18081 --rpc-bind-ip=127.0.0.1 --rpc-login user:password --confirm-external-bind --start-mining AdDrEsS
-
moneromooo
Sorry I thought you said solo mining. I misread then.
-
manifest
might be solo but wants to point multiple rigs at it i presume
-
xtuh
maybe its not solo, but , i mean... many workers to one address
-
moneromooo
Odd definition if solo but OK ^_^
-
moneromooo
Some pool miners support a daemon+tcp scheme.
-
moneromooo
Not sure it's appropriate for many miners though.
-
xtuh
at this time, question is - what is the right syntax for command line to restart daemon. is my example contains something unneeded or something missing?
-
moneromooo
--public-node and --rpc-login seem contradictory.
-
moneromooo
Especially with --rpc-bind-ip=127.0.0.1, unless you have some proxy from outside.
-
moneromooo
Otherwise it looks sensible.
-
xtuh
do i need rpc for mining?
-
monican_agent
moneromooo Thanks. I'd actually come across this implementation in my search. I was a little intimidated by the size of the code but I'll have another look.
-
moneromooo
If you want to start/stop it from RPC, yes.
-
xtuh
monerod --max-concurrency=2 --public-node --data-dir=/root/.bitmonero --prep-blocks-threads=4 --p2p-bind-ip=0.0.0.0 --p2p-bind-port=18080 --start-mining AdDrEsS
-
xtuh
mining port is 18080. am i right?
-
hyc
I wonder if we should publish a sample monerod config file for running on a smartphone
-
hyc
enable pruning, limit number of peers, limit bandwidth
-
moneromooo
There is no mining port.
-
xtuh
hyc: :) maybe add some code to turn bluetooth on and syncing over it with nearby nodes? :)
-
moneromooo
That'd be nice.
-
hyc
syncing over bluetooth native? hmm. I'd consider just using bluetooth's IP layer and not worrying about it
-
moneromooo
BTW, with your new line, you're allowing anyone to mine on *their* address.
-
moneromooo
If you want to make your node both a public node and mine for you, add --restricted-rpc.
-
xtuh
moneromooo: so as there is no mining port , then i need some proxy on the same server? or i need to add some option for mining port?
-
moneromooo
No idea what you're asking here.
-
moneromooo
What would a mining port do ? If it's "you submit new blocks to it", then it's the RPC port.
-
moneromooo
And it's 18081 by default.
-
hyc
you would want to set both a rpc-port and restricted-rpc-port and make them separate
-
hyc
moneromooo: there's a usability issue here, we need to add a feature to specify the rpc-restricted-bind-ip
-
hyc
so that the rpc-bind-ip can still be set to 127.0.0.1 and the rpc-restricted-bind-ip can be set to 0.0.0.0 (or something)
-
hyc
obviously 0.0.0.0 will conflict address-in-use with any other IP
-
xtuh
i understand,that i should read 0.0.0.0 as "external ip"
-
hyc
right
-
hyc
I'd consider changing these options to -bind-addr and specify bot address and port in one option.
-
hyc
and allow specifying them multiple times, in case of a machine with multiple public addresses
-
hyc
hm, this is probably more of a -dev topic, sorry
-
xtuh
what is zmq?
-
hyc
18082
-
xtuh
what it used for?
-
hyc
it's supposed to be the next generation RPC protocol, supposed to be more efficient
-
hyc
and more widely used
-
xtuh
ahh, ok, thanks
-
hyc
lookup ZeroMQ
-
xtuh
is that ok, or there is mistakes? (i want to avoid downtime while restarting node to fix params)
-
xtuh
monerod --max-concurrency=2 --public-node --data-dir=/root/.bitmonero --prep-blocks-threads=4 --p2p-bind-ip=11.22.33.44 --p2p-bind-port=18080 --rpc-bind-port=18081 --rpc-bind-ip=127.0.0.1 --rpc-login user:password --confirm-external-bind --start-mining AdDrEsS --restricted-rpc --rpc-restricted-bind-port=18888 --rpc-restricted-bind-ip=11.22.33.44 (--confirm-external-bind will be added if daemon asks it)
-
moneromooo
< moneromooo> --public-node and --rpc-login seem contradictory.
-
xtuh
so, for mining i dont need rpc-login (as i'm not planning to stop it)
-
asymptotically
if you use --start-mining do you need the unrestricted rpc at all?
-
xtuh
not shure, i think it will bring me the port for hashrate from outside
-
xtuh
sorry , something happens, need to check ups. AFK for about 1 or 2 hours, i will read your replys later. thanks
-
hyc
currently there is no such monerod option for --rpc-restricted-bind-ip - this is a missing feature
-
KiloLima
are mix-ins still a thing?
-
moneromooo
Yes.
-
fluffypony
yes but now we call them mix-outs
-
hyc
cuz mixons are best reserved for ice cream
-
hyc
mixins*
-
Stealthy
in simple terms what is the difference between the daemon rpc and wallet rpc?
-
Stealthy
or rather what is their function
-
Stealthy
basically i installed monerod for stagenet as i'm tetsing and i'm trying to wrap my head around what does what
-
moneromooo
The daemon RPC controls the daemon. The wallet RPC controls the wallet. If you're asking what's the difference between the node daemon and the wallet daemon, the node keeps track of the blockchain, the wallet daemon keeps track of wallets.
-
Stealthy
makes sense, ty
-
Stealthy
can i fully use the walletrpc while still syncing?
-
moneromooo
Yes.
-
Stealthy
sweet
-
manifest
i wanna say no though
-
manifest
the json-rpc http server doesnt start listening until the wallet has synced afaik
-
Stealthy
it seems that it started re-syncing when i switched to stagenet and it's a lot slower, which is why i wonder
-
Stealthy
ah
-
moneromooo
It'll certainly be much slower till the dewmon's synced, yes.
-
moneromooo
Access to the db is currently guarded by a main mutex even when not technically needed.
-
manifest
thats my experience with it, i remember fucking around for an hour or so wondering why the FUCK isnt my wallet-rpc listening until i just waited patiently to see the "server listening on 0.0.0.0:18081" in the wallet-rpc
-
moneromooo
That's only till it's refreshed from the node.
-
manifest
true, daemon sync =/= wallet sync so there's that
-
Stealthy
monerod 15087 monero 10u IPv4 229833 0t0 TCP *:38080 (LISTEN)
-
Stealthy
monerod 15087 monero 14u IPv4 228884 0t0 TCP *:18081 (LISTEN)
-
manifest
you have the mainnet and the stagenet both on
-
manifest
likely explains the slowness
-
Stealthy
oh, that was not intentional
-
moneromooo
Same PID.
-
manifest
also weird, iunno lol
-
Stealthy
lol
-
moneromooo
It's the same daemon, just using non defualt ports.
-
Stealthy
great start
-
Stealthy
-
Stealthy
took out port argument to prevent more confusion lol
-
UkoeHB_
-
Stealthy
i hope you're not suggesting that as material to get started lol
-
UkoeHB_
sorry not directed at you
-
Stealthy
is there a public stagenet daemon i can use instead of waiting for sync?
-
Stealthy
and will it allow me to create wallets and subaddresses and all that stuff
-
moneromooo
I believe xmr.to might have one. But testing using random stranger's servers is often a bad idea since it introduces uncontrollable behaviour.
-
moneromooo
The wallet does not need the node to create wallets/subaddresses.
-
Stealthy
i'm considering using
github.com/monero-ecosystem/monero-javascript and in its sample code it shows opening a wallet 'on the server'
-
Stealthy
that sounds like something i'd want
-
Stealthy
would help if it showed me how to create one to begin with lol
-
UkoeHB_
-
UkoeHB_
not exactly what you want tho
-
Stealthy
yea i should probably start reading to get the basic picture
-
binaryFate
Stealthy you can find a stagenet remote node here:
community.xmr.to/nodes.html but as mentioned not necessarily relevant for you
-
Stealthy
ty
-
Stealthy
that helped @UkoeHB_
-
Stealthy
method not found, i guess this api lib is just incorrect
-
Stealthy
the others are 2-4 years old lol
-
Stealthy
anyone recommend a nodejs lib
-
Stealthy
all i want to do is create a wallet, create temporary subaddresses for endusers and monitor transactions
-
moneromooo
You can check out the functional_tests directory, they exercise those RPC.
-
Stealthy
bunch of python
-
Stealthy
are you suggesting i should reverse engineer those and utilize json calls directly :P
-
moneromooo
Kinda :)
-
moneromooo
The python calls are direct raw calls to the RPC.
-
Stealthy
maybe the way to go
-
asymptotically
-
asymptotically
a little out of date but it shows what you want :D
-
Stealthy
yep, think that's the route to go
-
moneromooo
fucking firefox calling home again, and I've got all telemetry and stuff disabled.
-
moneromooo
And they claim to be pro privacy, the little shitty cunts.,
-
» moneromooo rages
-
moneromooo
I so hope someone makes a good browser I can switch to soon...
-
Stealthy
big marketing image
-
Stealthy
the moment they started with their dumbass 'suggestions' was the first bad omen
-
asymptotically
do an rms and get web pages emailed to you that you view in emacs gnus
-
UkoeHB_
calling home?
-
camthegeek
they have a support article that tells you how to disable it iirc
-
asymptotically
you disable it and then the next update adds something new to disable
-
Stealthy
wish javascript wasnt required for 90% of the web
-
Stealthy
and all those video codecs and what not
-
Stealthy
then you can make a secure browser
-
selsta
moneromooo: qutebrowser is quite minimal with no telemetry, but you have to like vim keybindings
-
nioc
wen mooobrowser
-
camthegeek
mooozilla
-
moneromooo
Big beasts. Firefox's source was hard to get into last I looked :/
-
Stealthy
you can build chromium
-
moneromooo
I'm not going to trust that.
-
Stealthy
rid of all the crap
-
dsc_
sudo apt install links
-
dsc_
links getmonero.org
-
moneromooo
That's text, wich is not always enough.
-
camthegeek
reading the dirty sites isn't the same as watching the dirty sites ;)
-
asymptotically
there's eww in emacs which is a worst of both worlds :D
-
» camthegeek finds his way out.
-
Stealthy
they should enforce no remote resources for images and what not, no more cookies
-
Stealthy
'they'
-
Stealthy
getting retarded all these long fingers everywhere
-
Stealthy
"create_wallet" method not found ok
-
selsta
Stealthy: what version are you using?
-
selsta
create_wallet should exist
-
selsta
-
Stealthy
im guessing that its monerod running on that port not the wallet rpc?
-
Stealthy
i guess its a separate service that i should run
-
selsta
monero-wallet-rpc? yes
-
asymptotically
you probably don't need to call create_wallet. you start the wallet-rpc server with one that already exists, and then just make a subaddress (create_address) for each user
-
Stealthy
that could be an alternative
-
Stealthy
i guess i don't really need to my app to create one for me
-
Stealthy
for my*
-
Stealthy
languages: [ German', English', Spanish', French', ....
-
Stealthy
there we go
-
Stealthy
lol now the xmr.to stagenet faucet is throwing an internal server error
-
Stealthy
ok, tomorrow
-
ndorf
you need stagenet coins? paste address
-
Stealthy
address: '47TdXb9UVdV525NESDwEYqY8sqs3GBNZb1ZMLzTg364qbj15ZQGc4qE3GqvprCPVCAPrKJxmuJhLv6Z4DPGCv1EUD1Tuhjm',
-
Stealthy
stagenet yea
-
ndorf
that's a mainnet address
-
Stealthy
lol did i mess up again
-
ndorf
that might explain the error :)
-
Stealthy
the wallet rpc is set to connect to local instance of monerod which has stagenet=1
-
ndorf
you also need to run the wallet with --stagenet
-
Stealthy
then i used 'create_wallet'
-
Stealthy
oh.. well that was dumb xD
-
ndorf
a bit surprised the wallet doesn't complain about that, actually
-
ndorf
note that if you run it with --stagenet, it will use the 3808x ports by default, so you don't need to also specify those
-
Stealthy
configured it to use a specific port because it was giving me a headache
-
Stealthy
55FpdJEotvYcqULvajajkoNEoWZnmNKJTbTPzbsHcuUtRNMgoGETAo6GkqazQThNDQTQszcbRbzuxCqKQAdgk1j9C2R9i7o
-
Stealthy
community.xmr.to server throws an internal server error so cant test any address
-
ndorf
i'll send you a few
-
Stealthy
awesome, thank you, then i can continue tonight :)
-
ndorf
sent
-
Stealthy
how fast do you think stagenet will confirm
-
Stealthy
the big question is, make coffee or later xD
-
lza_menace
make coffee :)
-
ndorf
it varies, you can `start_mining` to speed it up
-
Stealthy
wise
-
Stealthy
thats the cli right? it can mine?
-
ndorf
the daemon does the mining, you can use the command in the wallet or directly in the daemon (but have to specify address explicitly then)
-
Stealthy
so in my case i'd open_wallet and start_mining
-
ndorf
you would. this tx is confirmed now though
-
Stealthy
ah
-
Stealthy
result: {
-
Stealthy
balance: 0,
-
Stealthy
blocks_to_unlock: 0,
-
Stealthy
multisig_import_needed: false,
-
Stealthy
unlocked_balance: 0
-
Stealthy
}
-
Stealthy
i must be doing something stupid
-
Stealthy
see what i don't get is, when i call open_wallet, does the rpc server, like.. maintain a session or something? when i call get_address or getbalance does it know i want info for the previously opened wallet?
-
Stealthy
i pass account_index 0
-
ndorf
been a while since i used rpc, but IIRC, yes
-
ndorf
what's get_height say?
-
ndorf
our tx is in block 530387
-
Stealthy
id: '84a3cbd5-5231-4562-b069-695c127effb7',
-
Stealthy
jsonrpc: '2.0',
-
Stealthy
result: { height: 10001 }
-
ndorf
lol. yeah that's only a few years behind
-
ndorf
what's the daemon's get_height say?
-
Stealthy
oh is it because my monerod is not done yet
-
Stealthy
82%
-
ndorf
you might also have to call the `refresh` endpoint in the wallet once that's done
-
Stealthy
aah i see
-
Stealthy
things are starting to make sense lol
-
romainpradier
How to buy Monero ?
-
lza_menace
romainpradier: there are a ton of resources for learning how to get your hands on some Monero. Please read through some of these Reddit posts:
reddit.com/r/Monero/search?q=buy&restrict_sr=1