-
m-relay
<aioghaosdihfaowie:matrix.org> Hi, how do I derive public spend/view key from private spend/view key?
-
xbjfk
sech1: oh, right, I think I screwed up my program :)
-
xbjfk
just checked with zmq-cli and you are right
-
xbjfk
is there a way to get the target height on the pub-sub interface?
-
m-relay
<jeffro256:monero.social> for which type of address? (main, subaddress)
-
xbjfk
jeffro256:monero.social: im not entirely sure to be honest, I'm talking about the target block height you see when running eg monerod sync_status
-
xbjfk
i.e: Height: 1141, target: 1617549 (0.0705388%)
-
xbjfk
or in the output when running monerod in a terminal: 2024-06-07 05:22:36.128I Synced 7841/1617549 (0%, 1609708 left)
-
xbjfk
i want to get the 1617549 figure
-
m-relay
<jeffro256:monero.social> sorry was replying to @aioghaosdihfaowie
-
xbjfk
oh haha, that makes more sense
-
sech1
xbjfk you need to subscribe to "json-full-chain_main" or "json-minimal-chain_main" ZMQ messages to get each block
-
sech1
or "json-full-miner_data" to get current target height. You can check P2Pool's zmq_reader.cpp for reference
-
xbjfk
sech1: hmmm, i can't seem to find the target height in any of those (only current height)
-
xbjfk
I can't find any mention of "target" in zmq_reader.cpp too
-
xbjfk
json-full-miner_data:{"major_version":1,"height":89017,"prev_id":"ba792ca9983eb540775c0baa225404cbcd82ccfb60d265422e6597aa8d6a0957","seed_hash":"10a16659ce5026db613b7879865a8fca7a2566d9dea30df68dd03a9dc8569d8c","difficulty":"0x1aaf52c8","median_weight":20000,"already_generated_coins":1467123123053321264,"tx_backlog":[]}
-
xbjfk
here's an example of what I get for miner_data
-
sech1
"height"
-
sech1
you need to wait until your node is fully synced
-
xbjfk
oh, yeah - sorry I should've specified I want *target* height (I want to display sync progress)
-
xbjfk
so, presumably no way to do that via the zmq pub interface?
-
sech1
No at this moment
-
sech1
*Not
-
sech1
you could get target height via a regular RPC call and poll it periodically
-
xbjfk
right, thank you :)
-
sech1
-
m-relay
<moneromaster:matrix.org> How many people are part of the core team?