-
Adreik
Does the RPC wallet have an equivalent to the freeze/thaw commands? It does not appear to be in the documentation,
web.getmonero.org/resources/developer-guides/wallet-rpc.html
-
moneromooo
hyc: I'm suspicious of Blockchain::block_longhash_worker. It's calling get_block_longhash, which ends up calling rx_slow_hash with no seed_hash, which means "not an alt block".
-
moneromooo
But this is calling many hashes in parallel, so the hash being calculated may not be the one for the tip of the current chain.
-
moneromooo
This "alt block" flag is very confusing, and I'm not sure what the fix should be (always set the is_alt flag when called from this parallel function ?)
-
hyc
what do you mean it calls rx_slow_hash with no seed_hash?
-
hyc
:q
-
moneromooo
It goes through: bool get_block_longhash(const Blockchain *pbc, const block& b, crypto::hash& res, const uint64_t height, const crypto::hash *seed_hash, const int miners)
-
moneromooo
seed_hash is NULL
-
moneromooo
This gets used as !!seed_hash for is_alt.
-
hyc
worker calls crypto::hash pow = get_block_longhash(this, block, height++, 0);
-
hyc
which calls rx_slow_hash(main_height, seed_height, hash.data, bd.data(), bd.size(), res.data, miners, 0)
-
hyc
seed is always provided
-
moneromooo
Oh, the !!seed_hash is mine indeed, sorry. Still, 0 means "not alt" so the questiuon remaisns.
-
hyc
the seedheight toggle will take care of it
-
moneromooo
Yes, that's the thing that I do not understand.
-
moneromooo
0 here means not alt (so main). But those calls aren't necessarily ordered.
-
moneromooo
And they could straddle an epoch (backwards, if unlucky).
-
hyc
the seedhash slot for the current tip is shared across arbitrarily many threads
-
hyc
access to the althash slot is mutex'd
-
hyc
serialized
-
hyc
crossing an epoch boundary is also already handled
-
hyc
note /* RPC could request an earlier block on mainchain */
-
hyc
even if is_alt is passed in as zero, we can toggle it on if the block isn't actually on the current epoch
-
moneromooo
So does this imply that one should be able to call rx_slow_hash with 0 or !0 for is_alt, and the result will always be correct, it's just a performance thing ?
-
hyc
mainly, yeah
-
» moneromooo looks suspciciously at "mainly"...
-
hyc
is_alt means we expect it to be using a different seedhash than main, but it's possible that it will be the same
-
moneromooo
Alright. Thanks.
-
hyc
basically, is_alt=1 on entry definitely means it's an alt block, but if the divergence didn't cross an epoch boundary we can still use the same seedhash as mainchain
-
rnhmjoj
hi all! i'm having trouble building monero-gui 0.16. it seems the application needs two headers (span.h and net/http_client.h) from monero, i think they are in contrib/. i'm already building monero with -DBUILD_GUI_DEPS=ON but these headers are not being installed. what am i missing?
-
moneromooo
Try in #monero-gui
-
rnhmjoj
moneromoo: i think the problem is in the build of monero, not monero-gui
-
selsta
are you following the readme or are you trying to do something else?
-
rnhmjoj
selsta: kind of, i'm updating the Nix package that (currently) builds monero 0.15 to 0.16. at the same time i have to update the monero-gui package, which depends on monero
-
rnhmjoj
i can build monero 0.16 and it looks ok, but some headers that are apparently needed to build monero-gui from source are not being installed
-
selsta
not sure what you mean with installed, monero is a submodule of monero-gui and it takes the headers from the the monero submodule
-
iDunk
I think he's not using build.sh. Anyway, #monero-gui.
-
rnhmjoj
all right, i'll ask there
-
rnhmjoj
thank you