-
Guest25
I want some guidance on first steps to take to become a Monero developer and contribute to the project
-
fibonacci12358
Who is Monero?
-
br-m
<qaspr:matrix.org> Hey guys, how far are rolling checkpoints from done? Anything we can do to help? I'm a dev, however I haven't contributed to Monero yet.
-
nssy
-
br-m
<rbrunner7> @qaspr:matrix.org: Thanks for the offer, but for the checkpoints in particular more hands probably don't help anymore, that's well on its way. But of course any new dev, in general, is welcome :)
-
br-m
<qaspr:matrix.org> @rbrunner7:monero.social: Okay then. I am keeping an eye on the issue list, once a more permanent solution gains some traction, I'll see what I can do to help.
-
br-m
<andrewjackson:matrix.org> fibonacci12358: Didn't he build some Railroad or something?
-
br-m
<innocence117:matrix.org> GM
-
br-m
<letscage.com:matrix.org> where's the latest updates about the block reorg story ?
-
plowsof
there was a 2nd one. here is a good start
blocks.p2pool.observer
-
plowsof
second one meaning >9 block re-org*
-
DataHoarder
You can also view any of their blocks to see a couple of warnings detailing the events
blocks.p2pool.observer/block/192750…2720e42d75b5fb38d4d00edc2af05a1134a and linked work
-
DataHoarder
Monero shows the invalidated transactions in mempool as well
paste.debian.net/plainh/ad7f286d
-
DataHoarder
115 from last event on the 14th
-
DataHoarder
1 from the 18th
-
DataHoarder
Of these, 64 key images have been double-spent in new transaction inputs
-
br-m
<ki9:gf4.pw> gm
-
br-m
<ki9:gf4.pw> How can I detect a reorg from rpc?
-
br-m
<rucknium> @ki9:gf4.pw: What's the purpose of detecting it? Different ways to do it for different purposes.
-
br-m
<ki9:gf4.pw> Want to fire up the miners
-
br-m
-
br-m
<ki9:gf4.pw> Actually, as a quick-n-dirty, I could read from an api if there is one
-
br-m
<ki9:gf4.pw> @rucknium: Yeah, this is it! I thought plowsof said there was a flag.
-
br-m
<ki9:gf4.pw> Too bad you have to run a node. Maybe I will make an api.
-
br-m
<rucknium> If you want to poll the RPC and have acess to the node's unrestricted RPC port (that's the default when it's a local node) you can use get_alternate_chains
docs.getmonero.org/rpc-library/monerod-rpc/#get_alternate_chains
-
br-m
<rucknium> get_alt_blocks_hashes actually works on an unrestricted RPC port
docs.getmonero.org/rpc-library/monerod-rpc/#get_alt_blocks_hashes
-
br-m
<rucknium> But then you have to get the block headers with another call try figure out what the re-org was and how long it was
docs.getmonero.org/rpc-library/monerod-rpc/#get_block_header_by_hash
-
br-m
<ki9:gf4.pw> Plus I'd have to host it anyway. Unless there are public unrestricted rpcs.
-
br-m
<ki9:gf4.pw> --reorg-notify is gonna work fine for me because I already have a node synced.
-
DataHoarder
qubic finished the marathon for today, disabled selfish
-
DataHoarder
I track qubic mining tips on stratum to detect selfish, as well
qubic-snooper.p2pool.observer/tips.txt
-
DataHoarder
blocks.p2pool.observer no withheld transactions in the last 140 blocks or so, which is the sign of selfish mining
-
DataHoarder
-
DataHoarder
16 transactions
-
DataHoarder
of them, 10 are withheld
-
DataHoarder
meaning at most 6 user transactions :D
-
br-m
<ki9:gf4.pw> So by the time --reorg-notify has fired, the blocks have already been discarded and there's no advantage to adding non-malicious hashrate to the network. Right?
-
br-m
<ki9:gf4.pw> Maybe it would be better to measure withheld transactions and fire up the miners when selfish mining is detected.
-
br-m
<rucknium> DataHoarder has data on what Qubic is doing and when, in real time.
-
br-m
<rucknium> So maybe pull from that data
-
br-m
<ki9:gf4.pw> Yeah was about to ask if there's a better way than scraping.
-
DataHoarder
you can't detect it via monero until the reorg is done
-
DataHoarder
withheld transactions are not published
-
DataHoarder
you can monitor their stratum yourself
-
DataHoarder
and match on prev_id mismatch
-
DataHoarder
in their blob
-
DataHoarder
sometimes they like to send challenges with garbage randomx data with low diff. these must be solved for you to get real stratum data
-
br-m
<ki9:gf4.pw> Yeah, I was thinking about checking the last x blocks to determine if an attack is ongoing. > <DataHoarder> you can't detect it via monero until the reorg is done
-
DataHoarder
you can plug xmrig-proxy onto their stratum. then attach a miner with one core, it doesn't need to be that powerful. just be able to solve their challenges
-
DataHoarder
then with other code you can query xmrig-proxy by connecting to its stratum
-
DataHoarder
@ki9:gf4.pw again their data does not exist on chain until they finish the attack
-
DataHoarder
not the transactions, not the blocks
-
DataHoarder
tips.txt is light enough and is cached. feel free to poll that
-
DataHoarder
Or you can directly query their stratum
-
br-m
<ki9:gf4.pw> But you can guess that they started or stopped for the day, right? > <DataHoarder> qubic finished the marathon for today, disabled selfish
-
DataHoarder
their first attack might be the one
-
DataHoarder
you also don't know if they are withheld or not :D
-
DataHoarder
unless you are tracking the transaction publish times
-
DataHoarder
which you can do via ZMQ
-
DataHoarder
and some monerod changes too...
-
DataHoarder
that's why in the source code of
blocks.p2pool.observer I just have an API for those, there's multiple sources for them
-
DataHoarder
IF you want to turn these on
-
DataHoarder
marathon times they have are 12:00 UTC to 12:00 UTC on Mondays, Thursdays, Saturdays
-
DataHoarder
but at any other point they might be selfish mining during their intervals
-
br-m
<ki9:gf4.pw> See, electricity is more expensive than the reward here. I think that's true in most places. I want to do maximum good with my kWhs and mine at the times when it will benefit the network the most.
-
br-m
<ki9:gf4.pw> If it were you, what would you suggest using to determine when that is?
-
DataHoarder
I tend to mention it on IRC, and then it's there for quite several hours
-
DataHoarder
stratum. I'm using that :)
-
DataHoarder
it's what it's used to mine, so, source data
-
br-m
<ki9:gf4.pw> I think it's gonna take me a whole day and would take you like an hour. Do you have an api to alert miners like me or would you be interested in making one?
-
br-m
<ki9:gf4.pw> I could start a bounty for this.
-
DataHoarder
-
DataHoarder
this effectively is doing that
-
DataHoarder
if on any refresh you see the divergence on qubic TIP vs monero TIP (in heights/ids) there's probably selfish
-
DataHoarder
then I'd enable it at least for an hour. reset timer each time divergence is seen
-
DataHoarder
fetch that, search for "ALT ROOT" on page
-
br-m
<ki9:gf4.pw> I don't know what TIPs are. I thought divergence was undetectable until re-org.
-
DataHoarder
I don't have a json endpoint for that at the moment
-
DataHoarder
it is undetectable
-
DataHoarder
again I'm querying stratum
-
DataHoarder
which has their previous id and height
-
DataHoarder
so you can see what they are mining
-
DataHoarder
tip = highest block
-
br-m
<ki9:gf4.pw> Got it.
-
DataHoarder
that page displays the alternate root with the string "ALT ROOT" so that's the easiest I can get you without you going at their stratum address
-
br-m
<ki9:gf4.pw> I can just grep that page for 'ALT ROOT' and if I see it, start mining? > <DataHoarder> I don't have a json endpoint for that at the moment
-
DataHoarder
yes > 14:03:33 <DataHoarder> fetch that, search for "ALT ROOT" on page
-
DataHoarder
> then I'd enable it at least for an hour. reset timer each time divergence is seen
-
DataHoarder
basically if alt root (uppercase) is seen, start mining, keep it up for an hour and reset this hour timer each time it's seen
-
br-m
<ki9:gf4.pw> Cool, thanks!
-
br-m
<ki9:gf4.pw> You said that page updates every minute? Is that a reasonable interval to query it?
-
br-m
<helene:unredacted.org> the Refresh HTTP header the server sends tells you how many seconds you should wait before re-querying it
-
DataHoarder
it auto-queries it :)
-
DataHoarder
data is refreshed every 15s, 30s is fine, or 1m tbh
-
DataHoarder
it is cached, it's very free to serve
-
br-m
-
br-m
<ofrnxmr:xmr.mx> You can lost in -bounties or -community-dev and ask other ppl to review
-
br-m
<ofrnxmr:xmr.mx> (or here)
-
dskull
Q: I installed a monero node yesterday, but in less than 24h it's done over 750gb of traffic and only uses 15gb of storage... whats going on here?
-
br-m
<ofrnxmr:xmr.mx> print_net_stats
-
br-m
<ofrnxmr:xmr.mx> Type into monerod ^
-
br-m
<sbt:nope.chat> I can't join the bounties matrix channel for some reason > <@ofrnxmr:xmr.mx> You can lost in -bounties or -community-dev and ask other ppl to review
-
br-m
<basses:matrix.org> @sbt:nope.chat: #monero-bounties:monero.social
-
br-m
-
br-m
<basses:matrix.org> I can see you in members list
-
dskull
br-m: ahh thx, i restarted the node shortly after my question - so i'm only getting 5gb (download) in the last 40 minutes (no increase in blockchain size on disk however)
-
br-m
-
br-m
<sbt:nope.chat> @basses:matrix.org ^
-
br-m
<ofrnxmr:xmr.mx> Use element instead of element xtrash
-
br-m
<ravfx:xmr.mx> If you really need it now, ask someone to invite you, it should work...
-
br-m
<sbt:nope.chat> Yeah was gonna ask the same. I can't login to element for some reason
-
br-m
<ofrnxmr:xmr.mx> @ravfx:xmr.mx: It shows them already in the group
-
br-m
<ravfx:xmr.mx> @ofrnxmr:xmr.mx: Oh wow, it's that borked.. I did not know.
-
br-m
<ravfx:xmr.mx> I use that xtrash on my phone just for the sliding sync but I do all important operation from the PC
-
br-m
<ravfx:xmr.mx> including joining rooms
-
br-m
<ofrnxmr:xmr.mx> Same. I have xtrast and normal installed. I use normal when i have to do anything more than send a message
-
br-m
<ofrnxmr:xmr.mx> Emojis? Normal
-
br-m
<ofrnxmr:xmr.mx> Search? Normal
-
br-m
<ofrnxmr:xmr.mx> Moderate? Normal
-
br-m
<ofrnxmr:xmr.mx> Real backlogs? Normal
-
br-m
<ravfx:xmr.mx> Yeah, everything other than just reading/writing a message assuming it's not for a ping from the middle of the night, in that case you have to use normal
-
Cindy
about the community fundraiser about making wallet gen + encryption tools for old consoles, if nobody manages to make one in a very very long time, can the scope be loosened?
-
br-m
<ofrnxmr:xmr.mx> the bounty?
-
Cindy
yes
-
br-m
<ofrnxmr:xmr.mx> Would have to comment on the bounty page and see what op and others have to say
-
br-m
<ofrnxmr:xmr.mx> Changing the scope after money has been raised is typically not a good idea
-
br-m
<ofrnxmr:xmr.mx> Donors theoretically want what they paid for
-
Cindy
ideally the bounty should have been split into levels of features included, with the more features you manage to cram into your program, the more share of the bounty you get
-
Cindy
although i don't think the bounty system is that flexible
-
j0sephk3nt
Is there a discord that bridges Matrix and IRC? I much prefer that platform personally