01:31:53 Hi everyone, starting my CS degree this month. About to dive into c++, can anyone point me in the right direction in regards to what math skills I will need to accomplish in order to effectively contribute to the project? 01:42:58 theresreallyawol: browse zero to Monero 2 01:43:11 If you are interested in crypto 02:05:14 "theresreallyawolf: browse zero..." <- Awesome, thank you 08:03:14 I want to know how monero handle xmr in float like 1.5 in wallet api by default it is using double but proverangeSimpleRct() uses uint64_t why this 08:26:31 I mean it should use double and it is using it till wallet api but in rangeproof() where range and commitment are produced why it is using uint64_t 08:27:32 And wht type is xmr_amount 08:29:34 If you don't use yet any tool that lets you look up the definition of `xmr_amount` with basically one keypress or one click you are not yet equipped well, and IMHO you should go search such a tool for you 08:37:43 I used git grep "xmr_amount" i only got it used as type for other but not got how it got it's defination 08:38:15 Using floating point for money amounts is a cardinal sin in any software 08:40:08 sech1: ya floats are way more complicated to be used and operated with but what about the amount that are not perfect integers, until wallet api it is used but when it reaches proverange() it is getting uint64_t than wht is done with that 08:40:47 All XMR amounts are perfect integers 08:41:57 Than wht about the amount that are not in integers but rational like 0.5 monero 08:43:03 I think you will see that everywhere where it matters it's always 'xmr_amount', and only for UI purposes, to display to users, floats or doubles are used. 08:43:10 0.092945340688 XMR = 92945340688 in actual code 08:43:15 as an example 08:43:37 Tell me the code 08:43:54 https://github.com/monero-project/monero 08:44:02 By the way, git grep "xmr_amount" is not one of the possible tools that I was talking about ... 08:44:53 You are probably trying to cut down a big tree with something like a kitchen knife. Won't work. 08:45:24 sech1: oh gosh I know that repo, i told to tell me exact function or file doing but no way i will see it 08:45:44 find it yourself, I'm not going to spoonfeed you 08:46:10 But git grep gives best answer it will give everywhere where that xmr_amount is used and i can see it whts happening with it 08:46:34 What will you do with 1,000 places where that is used? 08:46:43 If you want the definition 08:47:06 What is so terrible with searching for a good tool and install it? 08:47:25 Atleast it will give something and i could search in those 1000 places. 08:47:33 So which tool should i use 08:47:57 I can recommend something from the "dark side", VSCode 08:51:12 So in one word monero is not using double instead using uint64 for amount. 08:52:31 Yes, in every place where it really matters. Of course you don't show something like 92945340688 to a user in a wallet though, for 0.092945340688 XMR 08:55:47 Thanks a lot you both 08:56:12 So for just showing user it is in float otherwise for the calculations it is uint64 08:56:49 As far as I know, yes. 09:43:02 Hello, 09:43:02 Do you thinks a decentralization of moneroPulse is possible? Cause it's centralized a lot the monero network. 09:56:59 vscode is nice, but for (grumpy) oldtimers, grep does the job just as good:... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/5242adbbe536fb1e8dcf34be653d42cc06288697) 10:37:10 > <@corom:matrix.org> Hello, 10:37:10 > Do you thinks a decentralization of moneroPulse is possible? Cause it's centralized a lot the monero network. 10:37:10 Its optional 11:39:08 There are no floats. What you see as 0.749032 is in fact 749032000000. 11:39:23 A decimal point is added to make the amounts easier to read for humans. 11:39:42 It's the same as $0.06 is 6 cents. You just count in smaller units. 11:39:56 But you'll diusplay 6 cents as 0.06 for humans. 11:40:23 xmr_amount is barely used, it should really be removed. Amounts are mostly uint64_t. 11:40:41 A few are boost bigint where needed, which is seldom. 12:08:38 Why function donate() and mms() in simplewallet.cpp are not called by any other functions but they are actually main function in wallet. 13:02:50 " xmr_amount is barely used": Right now looking at brand-new Seraphis code which is full of this :) 13:03:38 maybe just a similarly named variable? 13:04:28 typedef uint64_t xmr_amount; 13:05:55 We were indeed talking about the type, pretty sure 13:06:03 Exactly that typedef 13:08:10 I thought you were talking about some double var, but I didn't fully follow. 13:51:38 Why h2d() is multiplying recieved amount with 256 in every iteration 13:53:27 Because it's reading 8 bit chunks. 14:41:33 "> <@corom:matrix.org> Hello,..." <- Yes it's optional but a majority of nodes follow it. So I thinks decentralized it must be done. 14:42:40 Its manual. 14:45:46 You have to add `enforce-dns-checkpoints` 14:47:05 If majority of nodes do this.. that's their prerogative. 15:30:44 Okay thanks 16:17:04 I wanted to run a private network of monero on my system to check it functioning as i couldn't know whts going on in online deamon so i ran two deamon in background with offline option and  a restored wallet as given in monero testing document but now I am confused how to see mining and wallet creating and recieving stuff 16:18:28 you don't run them in offline mode. you run them with --add-exclusive-node pointing at each other 16:19:06 offline mode is useless for testing receiving & mining 16:20:16 You can check what parameters tests/functional_tests/functional_tests.py is using, it sets up a netowrk of a few daemons and wallets. 16:21:15 And wht about transaction i could create and recive in those fake wallets 16:21:22 And wht about starting mining 16:21:36 As i have set up both deamon and wallet so 18:26:23 woodser[m]: do you have time to test this today or tomorrow? https://github.com/monero-project/monero/issues/8484#issuecomment-1207431654 18:26:33 would like to include these fixed in v0.18.1.0 and the HF is approaching 18:27:07 sure I can test it now 18:27:35 This seems to be if you do things wrong though, so pretty much noone will hit this. 22:08:24 I'm getting a lot of these errors when syncing: sent wrong NOTIFY_RESPONSE_GET_OBJECTS: block with id=4d51510...eb2b4e6 wasn't requested, dropping connection 22:08:33 malicious nodes? 22:33:53 as long as sync works i wouldn't worry about it 22:34:14 from what i remember the ban algo is a bit too strict during initial sync so some peers get dropped