-
jrandom[m]
Hey guys, somebody has experience debugging on CLion?
-
jrandom[m]
I'd like to debug the codebase, but there are instructions only for Code::Blocks
-
IC_XC_NIKA[m]
<jrandom[m]> "Hey guys, somebody has experienc..." <- Like just setting breakpoints and stuff?
-
jrandom[m]
Yep, just that
-
jrandom[m]
I just want to follow the stackframe to see how everything works inside, but I have no idea about how to set it up
-
IC_XC_NIKA[m]
It's really easy, if you see where the line numbers are you can just click next to the line number and a little red dot will appear
-
IC_XC_NIKA[m]
When that line gets hit it gives you a ton of useful stuff and you can checkout which variables are doing whay
-
IC_XC_NIKA[m]
s/whay/what/
-
IC_XC_NIKA[m]
It's very good with all the JetBrains products
-
IC_XC_NIKA[m]
Im not at my computer right now so unfortunately I can't take screenshots
-
willshu[m]
Hello, if the monero blockchain ever rolls back, will the view-only wallet handles it itself?
-
-
IC_XC_NIKA[m]
Red dot is the breakpoint
-
jrandom[m]
Alright, and which configuration should I use for the debugger?
-
jrandom[m]
Or how do I trigger it?
-
jrandom[m]
I followed all the build instructions on the README, but I'm getting those errors when I click on the green bug
-
-
IC_XC_NIKA[m]
-
IC_XC_NIKA[m]
Hm
-
IC_XC_NIKA[m]
I think you need to make sure you have ninja installed and then just Google that, you might have to manually set something in the cmake file
-
jrandom[m]
I don't remember having installed ninja so maybe is that
-
IC_XC_NIKA[m]
Yeah
-
jrandom[m]
Thanks man, gonna give it a try
-
IC_XC_NIKA[m]
Are you on Linux?
-
jrandom[m]
Yep
-
IC_XC_NIKA[m]
Okay good lol
-
IC_XC_NIKA[m]
Compiling is such a pain in the ass on Windows
-
IC_XC_NIKA[m]
Just apt install ninja-build
-
IC_XC_NIKA[m]
And try it again
-
IC_XC_NIKA[m]
See if it's the same, I've had some issues with Ninja in the past not being configured correctly or something
-
jrandom[m]
omg seems like working, it started building something
-
jrandom[m]
Hopefully that does the trick
-
IC_XC_NIKA[m]
Based
-
IC_XC_NIKA[m]
I have to compile xmrig myself so that I can set the donation to 0 lol
-
jrandom[m]
Wtf, now the daemon is syncing up
-
-
jrandom[m]
Somehow I wasn't expecting to sync up the whole blockchain just for debugging
-
jrandom[m]
Is that really necessary?
-
IC_XC_NIKA[m]
Debug build still works like normal, but the binary is not optimized fully and I think it has debugging symbols or something
-
IC_XC_NIKA[m]
I never really mess around with debug builds personally, but I know you can expect them to function pretty much the same
-
jrandom[m]
Damn, so I guess it will be a long night
-
IC_XC_NIKA[m]
Yeah, you could also copy over the blockchain to where ever it's syncing that and save time maybe
-
jrandom[m]
Or maybe I could try with the pruned blockchain
-
IC_XC_NIKA[m]
I don't think that'll work, but it might
-
IC_XC_NIKA[m]
Just give it a shot
-
jrandom[m]
I will follow your word, don't want more overhead lol
-
IC_XC_NIKA[m]
What are you looking to accomplish with the source code? Or are you just learning for fun?
-
jrandom[m]
Yes, It's just for learning purposes. I've spent the last two months studying how transactions work
-
jrandom[m]
I have learned how all the view, spend keys and addresses/sub-addresses work
-
jrandom[m]
s/work/are formed/
-
IC_XC_NIKA[m]
Nice!
-
jrandom[m]
But now I'm trying to learn the Signing stuff and I got stuck
-
jrandom[m]
I still don't understand the theory, so I have hope that the code will give me some clues
-
jrandom[m]
(The damn ring has a lot of math symbols)
-
jrandom[m]
...
-
-
jrandom[m]
Do you know what do I have to do in order to make the tests find the headers in the IDE?
-
jrandom[m]
The test suite worked when I ran `make release-test`, so I guess is a IDE issue.
-
jberman[m]
reviewed 8046
-
moneromooo
willshu[m]: yes
-
moneromooo
It's very rare it catches a reorg so it might be buggy I suppose.
-
w[m]
<jrandom[m]> "Or maybe I could try with the..." <- Are you able to use
-
w[m]
--offline (dont connect to peers)
-
w[m]
--no-sync (dont sync, but connect to bootstap)
-
w[m]
--test-drop-download (dont save blocks)
-
w[m]
* Are you able to use one of these for your use case?
-
w[m]
--offline (dont connect to peers)
-
w[m]
--no-sync (dont sync, but connect to bootstap)
-
w[m]
--test-drop-download (dont save blocks)
-
-
willshu[m]
Why is there a `key` called `amounts`?
-
willshu[m]
and why is it an array?
-
moneromooo
You've got to be clearer. Which file/line ?
-
willshu[m]
<moneromooo> "You've got to be clearer..." <- line 14. Under `key` `amount`.
-
jrg
-
Rucknium[m]
The last line there is "Lastly, a huge thanks goes to Dr. Sarang Noether for helping me understand these issues more deeply." Hopefully if Sarang was involved in any way, he would have recognized any issues with Monero's Bulletproofs implementation and taken appropriate action.
-
ErCiccione
There is a list a projects involved and Monero is not there.
-
monerobull[m]
F to consensys
-
UkoeHB
jrg: you can see here the 'transcript' gets built from all public keys in the proof structure via calls to `transcript_update()`
github.com/monero-project/monero/bl…rc/ringct/bulletproofs_plus.cc#L840
-
makkiato[m]
Also, at the level of documentation (not code), the non-interactive Fiat-Shamir transform is explicitly given in "Zero to Monero", section 2.3.4
-
UkoeHB
makkiato[m]: in ZtM2 I don't think I explicitly talk about including all public parameters in the FS hash
-
UkoeHB
I briefly mention it (key prefixing) on page 31
-
baro77[m]
Hi everybody , just to introduce myself , I’m a rookie , just author of Library cheatsheets.. I came into to signal the bulletproof problem, but I have seen @jrg was 1 hour ahead of me 👍
-
IC_XC_NIKA[m]
What is the bulletproof problem?
-
cheekyleeks
-
baro77[m]
-
IC_XC_NIKA[m]
👍
-
w[m]
The answer is no, it doesnt affect monero
-
sethforprivacy
Specific lines that prevent this vuln apparently are here for those interested:
github.com/monero-project/monero/bl…rc/ringct/bulletproofs.cc#L568-L587
-
sethforprivacy
-
LonelyDalek[m]
Meh, I'm giving up on Monero on OpenBSD
-
LonelyDalek[m]
-
LonelyDalek[m]
Have a nice rest of your life. Please take the red pill - it's not just you that you live for. Your actions have consequences.
-
jrandom[m]
baro77: Hi man, I love you cheat sheets, please don't call yourself a rookie
-
jrandom[m]
s/you/your/
-
wernervasquez[m]
Lonely Dalek: free market >> capitalism
-
jrandom[m]
Laissez-faire
-
baro77[m]
jrandom: too kind, thanks 🙏
-
jrg
Thanks for the very exhaustive answer :)
-
Elijah[m]
> <@dalek:anontier.nl> Meh, I'm giving up on Monero on OpenBSD
-
Elijah[m]
-
Elijah[m]
Might want to rewrite your argument. Humans also depend on food. Some because of convenience (e.g. IV). You also imply without proof that capitalism equates to centralized currency (fiat) when once upon a time there was a gold standard. To claim fiat currency = capitalism is out right foolish.
-
Elijah[m]
s/out/outright/, s/right//