-
parazyd
Hey, if doing merge-mining with Monero, should the salt in the RandomX implementation be changed or the same should be kept like Monero has?
-
sech1
Merge mining means you compute exactly the same hashes as Monero (but you add some data to tx_extra of the coinbase transaction)
-
parazyd
Gotcha, thanks
-
parazyd
That tx_extra data is usually the coinbase hash of the other chain's block?
-
parazyd
Or no actually, perhaps the header hash
-
sech1
If you want to do it the right way, you have to add TX_EXTRA_MERGE_MINING_TAG (tag #3) which contains 32-byte merkle root hash
-
sech1
Merkle root hash of all chains you're merge mining with this Monero block
-
sech1
if it's only one chain, then it will be just that chain's hash
-
parazyd
What's in that Merkle tree?
-
sech1
By "hash" I mean whatever 32 bytes of data you get from that chain
-
parazyd
aha
-
sech1
Usually it's a hash of that chain's block
-
sech1
Not a PoW hash, just a regular cryptographical hash
-
parazyd
Yep, so like the header hash
-
sech1
Then, you can prove to that chain that you mege mined by demonstrating that the coinbase tx has the merge mining tag with their hash
-
sech1
Technically it should be merkle tree proof, but if it's only one chain it's just a direct comparison
-
parazyd
*nod*
-
parazyd
Thank you
-
sech1
All this means you can't merge mine with some other coin unless that coin was specifically designed to be mege mined with Monero
-
parazyd
Yeah
-
parazyd
I've seen, for example, Tari has 2 kinds of mining
-
parazyd
ugh it's very difficult to find resources on Google regarding mining lol
-
sech1
It's not well documented, you have to dig a lot of source code to gain knowledge
-
parazyd
Certainly seems so :)
-
parazyd
sech1: Is there a spec for the JSON-RPC methods/API that xmrig uses somewhere?
-
sech1
-
parazyd
The stuff it does with a pool/proxy
-
parazyd
e.g. "login"
-
parazyd
Is it just normal stratum?
-
sech1
it's stratum
-
parazyd
okay, ty :)
-
sech1
and Monero pools use a bit different stratum compared to what you can find in google
-
sech1
so just enable debug log in xmrig and watch what it sends and receives :D
-
parazyd
sech1: Is that a build-time flag?
-
sech1
it's for cmake
-
sech1
-DWITH_DEBUG_LOG=ON
-
parazyd
Alright, I just compiled it from gentoo portage so it wasn't there
-
parazyd
Will do so now
-
parazyd
ah this is nice!
-
m-relay
<r4v3r23:monero.social> does CLI wallet warn against high fees from malicious nodes?
-
m-relay
<r4v3r23:monero.social> or is that just GUI
-
rbrunner
Don't think the CLI warns likewise.
-
sech1
CLI always shows the fee and asks "Y/N" before sending the transaction