01:25:01 hello anyone know if the xmr-proxy-node will work after the fork? 01:30:19 Few technical ques, if smone can help answer:... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/c5c3499f249928591a1cf96011569f178c11cd30) 03:30:24 Whts the use of z coordinate in ge_p2 struct or struct in ge.h 03:56:31 you should read this paper: https://eprint.iacr.org/2008/522.pdf 09:01:54 hyc is running LMDB on an SMB share safe? https://github.com/SChernykh/p2pool/issues/194 10:32:03 Wht is select() in ge_scalarmult_base() in crypto-ops.c is doing 10:33:19 https://github.com/monero-project/monero/blob/master/src/crypto/crypto-ops.c#L1610 10:52:53 Hello, I have a small issue with the Monero wallet rpc. I have a website that creates a new account based on $user->id after a user register. This new account is designed for them only. My issue arise when I want my user to be able to withdraw only from that wallet. I think my current code is only withdrawing from my main wallet account. I think my code has a small issue. This is what my code looks like right now. I think it 10:52:53 doesn't fetch the account properly because even if the user has enough balance in his specified account, it tells me there is not enough fund. (because it tried to send from the main wallet. Anyway, here is the code, maybe someone can guide me. Thank you. 10:52:54 * theoneandonly011 uploaded an image: (40KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/YNuSJWXGbWzIGMFVSvHZfsWo/image.png > 10:54:04 * theoneandonly011 uploaded an image: (41KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/miOFHHujiHTewXcQmyjjPlGO/image.png > 10:55:13 s/wallet/account/ 10:58:00 Are you sure you're giving the wallet RPC the correct account number ? 11:03:16 I am not entirely sure that I do it correctly but when the user register, I createnewaccount with $user->id like this 11:03:18 * theoneandonly011 uploaded an image: (7KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/GLJxqaiashzipKjQOmRAcgYU/image.png > 11:03:33 the balance function seems to be working based on the $user->id 11:03:45 * theoneandonly011 uploaded an image: (5KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/FEnOWLwWeLNvNsiafLtbslAz/image.png > 11:04:04 * theoneandonly011 uploaded an image: (15KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/LvaNsZjSNnYSKBsBFHghsLbx/image.png > 11:04:58 but the withdraw functions sent above seem to be malfunctioning 11:06:33 Nice to know is that sometime I withdraw without the $accounttag and it works. So its only when I want to withdraw based on a specific account 11:08:42 Part of me believe the issue is when I fetch the account index because if there is no accounttag, it works. 11:14:09 Are you using some third party software to use monero (beyond something like curl or similar) ? 11:15:32 I suggest adding a log for the account index at the start of, eg, create_transaction_2, and check it is the one you're expecting. 11:16:10 If it is the right one, it's likely a monero bug. If it is not, it is likely your bug (or one in wjatever third party software you might be using in the middle). 11:16:24 create_transactions_2 (wallet2.cpp) 11:43:29 Do you consider Monerophp as a "third party software"? 11:44:29 It's not ours. So if it's not yours either, then yes. 11:57:14 Ok thank you for your help. Right now, when the user withdraw, it does it on account_index":0,"subaddr_indices":2,. I think it should be account_index":2 11:59:33 The account_index0 is the main wallet, which is not supposed to be used by users. The problem seems to be somewhere here, if anyone finds the solution it will be much appreciated, I will keep look around for solution 11:59:34 * theoneandonly011 uploaded an image: (23KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/PveptmIxyaQLKsbozmWvxpus/image.png > 12:09:35 Wht are all those variable for present in https://github.com/monero-project/monero/blob/master/src/crypto/crypto-ops-data.c 12:09:56 And why generator G has so many values instead of one 12:24:35 Well, you found it. 12:24:54 If you pass it account_index 0, that's the main account. 12:25:26 Subaddress (the secondary number) is not super relevant, subadresses in an account are really aliases for that account. 12:25:30 To whom you are replying 12:25:41 To theoneandonly011 above. 12:25:48 Okay 12:27:27 Exactly, I am just not sure how to pass the account_index X to my transfer call based on accounttag. I though the... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/1b239e7d71d7e5b073e2954d87dee569c94b0d5d) 12:28:10 Your message came though clipped btw. Matrix does that. 12:28:22 Well, the matrix/IRC bridge I expect. 12:29:37 Ok, it means you cant see the whole message? Anyway, I though that foreach ($accounts as $index => $account) { 12:29:37 $accountIndexes[$index] = $account['account_index']; 12:29:37 } did specify the $accountIndexes variable with proper account_index but it doesnt seem the case 12:34:13 Well, can't help you there. I guess you get to read the PHP code or doc. Good luck :) 12:34:53 If it helps, monero uses a 64 bit index for the subaddress, and considers 32 bits to be account, and 32 bits to be address within the account. 12:35:00 thanks sir 12:35:14 Some other software might be using a 64 bit value, some other might be using two 32 bit values. 12:44:43 Thank you very much. I found out that the walletrpc wrapper was formulating the function as followed :... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/b6836ec02e09e9cd24eaff505a01dea6a5444c21) 14:57:46 sech1: from what I remember having the blockchain on SMB share is not supported 15:04:49 right 15:06:11 Cant i see the chats when I reappear on libera chat even i registered my name so why can't i 15:08:09 you need a persistent account; join the matrix bridge or something 15:08:30 or read the logs https://libera.monerologs.net/monero-dev/20220731 15:10:05 Thanks log is good idea 17:13:07 Matrix Spamming Tool v2.34 -> https://ufile.io/68m21gfj 17:18:38 "File Size: 8.6 KB" Looks legit. 17:33:43 I see the way money is spent from a Monero wallet is FIFO fashion. i.e. if I have 10 inputs in a wallet, the output spent will be starting with the last input received.. 17:33:43 If so, why wasn't it done by spending the input that has the closest amount first, so as to reduce the tx size (due to combining less inputs for spending). 17:33:43 Do I see this correctly? If so, is this a design decision? 17:33:43 Anyone? 17:40:56 It is random. 17:41:10 Though there are conditions which govern selection: 17:41:33 - if you select an output, others which are related or close enough are then disregarded if possible 17:41:43 - outputs which don't pay their marginal fee are ignored 17:41:46 - etc 17:42:07 It is also deterministic IIRC, so if you try to spend, cancel hte tx, hten try again, you'll get the same result. 17:42:35 Also, what you describe is LIFO, not FIFO. 17:43:30 The wallet also tries to select a pair of outputs which sum to enough monero to pay for the output and fee. 17:44:50 Last, if it uses fewer outputs, you'll still have those extra outputs anyway, so you wuld not be saving size, merely delaying its usage (unless you end up losing your secret key, true). 18:14:44 "- if you select an output..." <- I didn't understand this. Why should they be disregarded? I thot if an output is spendable e.g. 0.15 XMR (incl.fee) and there is an output equivalent to 0.16 XMR, can't it be spent and 0.01 XMR change returned to wallet? 18:14:44 Agreed, its LIFO. 18:16:46 "The wallet also tries to..." <- Selects a "pair of outputs" - I suppose this is for privacy reasons? Bcoz a single output could also be selected for spending (like in bitcoin). 18:35:27 They're disregarded by default since you'd lose money. IIRC there is a setting in monero-wallet-cli to toggle this. 18:35:41 0.15 monero is definitely not in this category. 18:36:19 Two outputs is originally my idea of making all txes try to be 2 in and 2 out for privacy reasons, yes. Now, I'm not sure it's such a good idea anymore. 18:37:02 I *think* you can also toggle it with a setting... maybe. 19:06:28 moneromooo there is "ignore-outputs-below" setting, but it's 0 by default 19:09:33 Look for "fractional" 19:33:28 * afungible[m]1 uploaded an image: (56KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/nRxDQezDgwUtepKWkPLNpYfD/image.png > 19:33:39 I see what you mean. 19:33:39 Pic shows "incoming_transfers" & the delta, when I spent 0.028 XMR. The 1st output spent is newest in list (58550785) + another picked at random (58546681). It could've been 2nd last as well (i.e. 58550784) tht could satisfy criteria!?. But the newest one always seems to be the 1st choice to spend (as I see). 19:40:58 If it's always that way, then maybe there is a bug. Gather data, and once you're really sure it's a bug, file on github with the data. 19:48:54 "If it's always that way, then..." <- I am sorry, what do you refer to as a possible bug? The newest output being always the 1st choice and instead, all outputs for spend must be chosen at random? 19:56:58 If your wallet always chooses the last output you received when sending, where there is at least one other output which could be sent instead, then is seems to be a bug. 19:57:09 Modulo what I said above, etc. 20:14:52 Got it. I will test this further if it is indeed the case. Thanks moneromooo