-
jtgrassie
cohcho: "monero-pool can set diff higher than block difficulty" whare are you refering to in the source?
-
jtgrassie
cohcho: "it's not ready for production" really? a) first pool to support rx b) only pool that does full rx mode (could go on)
-
jtgrassie
Welcome contributions though!
-
cohcho
function retarget that updates miner's diff
-
cohcho
doesn't have fmin(target, job->block_template->difficulty)
-
cohcho
I mean as plug&play solution not ready
-
cohcho
I'm using now after few fixes
-
cohcho
s/fmin/min
-
jtgrassie
target != difficulty
-
cohcho
wait, let me check
-
jtgrassie
they are different things
-
jtgrassie
"I mean as plug&play solution" <- no, there is no Dockerfile if that's what you mean.
-
jtgrassie
"fmin(target, job->block_template->difficulty)" <- would be wrong, as I say, target is not the same thing as block difficulty.
-
cohcho
you're wrong: in your code job->target equals to diff from monerod
-
cohcho
functino target_to_hex produces hex of something that is called target in monerod
-
cohcho
and job->target can be set higher diff in monerod
-
cohcho
i'm right, check your code
-
jtgrassie
there is no "target in monerod"
-
cohcho
let me check
-
jtgrassie
target is a stratum specific thing
-
jtgrassie
you will find a near identical retarget in nodejs-pool
-
cohcho
I didn't use nodejs-pool
-
cohcho
from monerod: check_hash_64(hash, difficulty.convert_to<std::uint64_t>())
-
cohcho
result of `difficulty.convert_to()` is called target
-
cohcho
and difficulty itselt is difficulty
-
cohcho
in your code job->target equals to difficulty
-
jtgrassie
no no no
-
jtgrassie
it does not.
-
cohcho
and target_to_hex(job->target) equals to difficulty.convert_to but reduced to 32bits
-
cohcho
If i'm wrong then i need more time to realize it
-
jtgrassie
look at node-js updateDifficulty
-
jtgrassie
difficulty and target (the words) get interchanged a lot in the pool(s).
-
jtgrassie
block difficulty (at least in monero-pool, cant remember nodesjs) is the actual normal block difficulty.
-
jtgrassie
target is something else. it still relates to difficulty, but it is not the same.
-
cohcho
Write here something like: "I'm sure that monero-pool can't set miner's job complexiter higher that required for actual block"
-
cohcho
And i'm will be fine
-
cohcho
complexity*
-
jtgrassie
I am absolutely positive.
-
Snipa
Because of the difficulty cap more than anything else.
-
Snipa
Both of the main node pool imeplementations have a ceiling I think.
-
cohcho
Snipa, can you check his code?
-
Snipa
You got a link? I haven't looked in forever.
-
cohcho
trace retarget() function call and how it is being passed to miner via json
-
Snipa
I gathered, I just don't know where trhe source code is offhand.
-
jtgrassie
-
cohcho
-
cohcho
yes, that link
-
jtgrassie
cohcho is not grasping how startum target does not equal monero block difficulty.
-
Snipa
It does, technically.
-
jtgrassie
well yes, in reverse
-
Snipa
The stratum target is the mindiff required to hit.
-
Snipa
Technically, that code doesn't have a ceiling.
-
cohcho
awesome!
-
jtgrassie
neither does nodejs
-
Snipa
-
jtgrassie
they don't need it
-
Snipa
We lock you out during the set. :P
-
Snipa
But that was more to deal with dumb miners who set massive diffs then complained about never finding shares.
-
Snipa
But yeah, it shouldn't need it in general, as you're using the share target time, and submitted hashes.
-
jtgrassie
"We lock you out during the set." thats the pool max target setting, not block diff.
-
Snipa
Yeah, which is always less than block diff.
-
Snipa
Unless network diff drops to sub 500k.
-
jtgrassie
hmmm
-
Snipa
Auctually, I think it's still 20-30k in the default config, haven't looked at that in forever.
-
Snipa
So you could, in theory, if the math was extra screwball in your code, send a diff target > the current block target.
-
cohcho
so much worsds, and no explicit answer yes or no
-
Snipa
But the overall of that code tells me it's not likely to happen.
-
cohcho
that's why i don't spend time of pull requests
-
Snipa
My instinct says "No, you're not going to send a target > block diff." just because you're using the client hashrate to determine the target.
-
Snipa
It is, /technically/ a possibility, but it's one I don't see happening any time soon.
-
cohcho
1st time use and it's just happened to me on testnet
-
Snipa
Sure, and that makes sense, as your hashrate is far exceeding the network difficulty on testnet.
-
cohcho
another ting for plug&play: data-dir for lmdb is missing and will tigger assert in code
-
jtgrassie
^ thanks. I see the issue there. if supplied path doesn't exist
-
cohcho
few typos in strings are not important at all
-
jtgrassie
yeah I have a couple of commits waiting to push with a typo or tow
-
jtgrassie
;)
-
cohcho
If someone will double spend monero then it must not be done on weekends.
-
jtgrassie
I've just push the commits I had sitting. If there's a typo I have missed let me know please.
-
cohcho
at first glance memory footprint of your pool is the best
-
jtgrassie
-
jtgrassie
thanks
-
jtgrassie
^ +Snipa
-
Snipa
Shiny.
-
gingeropolous
1 gigahash
-
gingeropolous
total miners 26292
-
gingeropolous
wow. the electric bill is a lot lower this month!
-
rottensox
heh, is it? gingeropolous.
-
rottensox
how comes.
-
gingeropolous
most of the GPUs are off I guess. and I didn't get everything online at once for randomx...