02:56:24 Hi all. Is the fork late? 02:58:04 the fork happened already 02:58:27 there will be a second fork tomorrow 03:04:34 in monerod.conf I have: p2p-bind-port=18080 and p2p-bind-ip=127.0.0.1 and my onion points at blah.onion:18080 -> 127.0.0.1:18080 03:04:56 I also have anonymous-inbound=blah.onion:18083,127.0.0.1:18083,64 03:05:17 Are they both necessary? 03:06:28 I also have the same blah.onion pushing 18083 and 18081 (rpc) connections to 127.0.0.1 03:07:01 I gather that remote rpc is required for me (or others) to use my node as a remote node - is that true? 03:21:42 yes 03:22:25 I wouldn't publish port 18081 though 03:22:36 I'd only publish the restricted-rpc port 03:28:25 That is my restricted rpc port 03:30:22 but ok so ignoring 18081 for now, why are there 2 different things to do the same thing? Are they just 2 different ways of saying the same thing (considering how I have my p2p-bind-port and p2p-bind-ip set? 03:31:49 what two different things? 03:32:19 p2p-bind-port and p2p-bind-ip, along with anonymous-inbound. Last I checked I couldn't put them on the same port 03:32:54 sure you can 03:33:03 aren't you already putting them on 18080? 03:33:42 I'm putting p2p-bind-ip on 18080 and I am putting anonymous-inbound on 18083 as suggested when that config option came out 03:34:06 iirc I wasn't able to put them on the same port. Glad to hear I can, I'll try it 03:34:35 ahh 03:34:47 yeah I have mine on 18083 as well 03:36:43 FATAL net contrib/epee/include/net/abstract_tcp_server2.inl:1277 Error starting server: Failed to bind IPv4 (set to required) 03:36:44 ERROR daemon src/daemon/main.cpp:364 Exception in main! Failed to initialize p2p server. 03:37:03 yeah they have to be separate 03:37:49 p2p-bind-ip / p2p-bind-port is only for clearnet 03:38:17 any other network (tor, i2p) requires its own port 03:38:31 you don't anything onion on 18080 03:39:07 selsta: why not? 03:39:18 anonymous-inbound=blah.onion:18080,127.0.0.1:18083,64 03:39:40 ^ I just did that and it seems to have worked... at least externally. I had to go with 127.0.0.1:18083 internally there 03:39:47 yeah that can work, because it's really using 18083 on the local machine 03:40:13 the outside world talks to onion:18080 but tor forwards it to local:18083 03:42:33 on one of my nodes I'm using onion:18083 -> local:18084 because zmq-pub is already on local:18083 03:43:43 So if I totally leave out anonymous-inbound=... if I were to connect to say another .onion node, would it see my IP as a tor exit node's public ip? And anonymous-inbound makes it so that they see my .onion? Or how does it go? 03:44:03 it means what it says 03:44:16 anonymous-inbound only sets how other peers can connect to you 03:44:26 has no effect on how you connect to them 03:44:32 How do they learn that .onion name? 03:44:48 it's published in peerlists like everything else 03:45:42 K. And if I had no anonymous-inbound option, and just used a hidden service and p2p-bind-ip=127.0.0.1 and p2p-bind-port=18080, what would they see then? 03:45:46 so it only can get published because you first contacted a clearnet peer. like one of the seed nodes 03:46:20 monerod doesn't know anything about your hidden service unless you tell it via anonymous-inbound 03:46:39 if you don't use that flag, nobody tries to contact you there. 03:47:03 OK. Do they try to contact me at all or can I only do outbound with that config? 03:47:15 clearnet ... 03:47:57 woah... so you're saying I'm connecting to outbound peers via clearnet? 03:48:06 yes 03:48:09 even with p2p-bind-ip=127.0.0.1 ? 03:48:24 bind-ip only affects incoming connections 03:48:32 has no impact on outbound connections 03:49:20 wow so... I *still* have to use torify if I want monero to use tor? 03:49:24 after all this time 03:49:46 you use --tx-proxy to tell it to use tor outbound 03:49:59 that's only for when I submit transactions to peers I thought 03:50:00 but monerod always uses clearnet 03:51:03 if you want everything outbound to go thru tor then yeah, use torsocks or whatever 03:51:25 my jaw is on the floor right now 03:51:31 how can that still be true 03:51:36 ? 03:51:56 that we still can't proxy outbound connections via tor somehow within monero 03:51:59 in general, tor is too slow 03:52:45 I don't buy that. It's fine. All my bitcoin traffic goes through tor just fine. It's not like monero has more transactions than bitcoin 03:53:50 there's also the problem of fending off sybil attacks if everything is going thru tor 03:54:10 Not if you use tor exit -> clearnet 03:54:16 I'm not trying to only use .onion 03:54:26 just I need everythign going through tor and actually 03:54:29 I think it already does that 03:54:32 DeanGuss: --proxy flag 03:55:06 I just did a netstat and grepped for monero and I see there is not a single clearnet connection. Everything is to 127.0.0.1:9050 03:55:37 selsta: hrmm... I seem to recall that, but thought it was fazed out when anonymous-inbound and tx-proxy came around 03:55:45 no 03:55:47 so you're already using tx-proxy 03:55:56 but --proxy will use exit nodes 03:56:01 hyc: yes of course 03:56:17 since we don't support p2p via onion, only transactions 03:56:23 does tx-proxy apply to every tx that I relay as well as submit? 03:56:49 yes 03:56:56 relay from other nodes? 03:57:04 selsta: yes 03:57:11 there'd be no point if the txs were treated differently, that'd make them traceable 03:57:14 hyc well if that's true why would I need torsocks? 03:57:29 quite sure they got propagated to clearnet 03:58:19 sounds like you don't need torsocks, I prob misspoke earlier 03:58:33 didn't understand your setup 03:58:58 and what is the difference between --proxy and -tx-proxy ? --proxy is for outbound fetching of txs/blocks? 03:59:16 proxy is a normal proxy, it does not understand tor 03:59:34 tx-proxy has specific tor / i2p support and is specifically for tx 03:59:50 What do you mean understand tor? You mean get .onion transport/name resolution? 04:00:10 help for tx-proxy says it only affects local txs. didn't notice that before 04:00:29 it will use the tor exit nodes, it does not connect to onion p2p nodes 04:01:04 selsta: Why would it care? Does it not implement socks4a/socks5h (where the proxy does the name resolution)? 04:01:50 but my daemons routinely log "unable to send tx to tor" and I haven't sent a txn t that time. I suppose it's relaying via dandelion+ 04:02:18 hyc: i think there might be 1 hop before they get to clearnet 04:02:36 DeanGuss: what do you want to do exactly? 04:03:53 selsta: I want to advertise to the network that they can connect p2p for blocks and transactions at my onion, I want to connect to .onion and clearnet ips (but only via tor), and I want to submit transactions via tor. I want everything to go out and come in over tor and I want clearnet in the mix to protect against sybils. 04:04:21 and I want restricted rpc available over my .onion as well 04:05:31 you can't say "everything go out and come in over tor" *and* "clearnet in the mix" 04:05:44 yes I can, why not? 04:05:44 to keep clearnet in the mix, something has to go out and come in over it 04:05:49 I want to reach clearnet via tor 04:05:53 not just .onion 04:06:18 ah 04:06:28 then we're back to using --proxy as selsta mentioned 04:07:47 no idea how that looks in the peerlist 04:08:40 like I said before, you can't sync blocks over onion, it will use exit nodes to connect to other clearnet nodes 04:09:09 .onion nodes are only supported with --tx-proxy 04:09:09 selsta: Your default coin is now set to XMR. Change with coins command. 04:09:10 selsta: ≈$0.0588 • ≈ value of: 1 ONION • Source: cmc/ccc/altm 04:09:21 you can use both --proxy and --tx-proxy 04:10:21 what inbound addr:port is advertised to the peerlist when you use --proxy? 04:10:57 the one from the exit node I would guess 04:11:10 and inbound port is always random from what I remember 04:11:59 monerod creates the peerlist entry, not the proxy. and the proxy isn't bidirectional 04:12:16 monerod doesn't know its exit node address 04:15:10 selsta: so --proxy is for proxying to clearnet and --tx-proxy is for proxying to .onion, but I can't fetch whole blocks from .onion nodes? Or do you just mean I can't fetch from .onion nodes with --proxy? 04:15:22 yes 04:15:48 I meant yes to the first 04:16:18 there are no .onion pees with --proxy 04:16:20 peers 04:20:49 hyc: I dunno a log about monero (so thank you and selsta for explaining at length), but if you have `bitcoin-cli getpeerinfo` handy it might be worth looking into how they do it: For each peer they list eg. "network": "ipv4", "addr": "ip_of_peer:8333", "addrbind": "127.0.0.1:port", "addrlocal": "tor_exit_ip:port" where I have bitcoin setup to always use tor and connect to .onion and any ipv4 ip via tor. 04:21:03 s/log/lot/ 04:22:35 selsta: ok cool. So it sounds like I can achieve what I want if I use --proxy and --tx-proxy (everything goes through tor and I can talk to .onion and clearnet via tor) 04:23:36 yes 04:24:28 Thanks. 04:25:55 So is there a concept of a reindex in monero? What if something goes wrong with the database index? 04:35:02 Maybe the need for such rpc calls is obviated by lmdb somehow 04:37:24 selsta: oh, sorry. I didn't know about the 2nd fork. 04:48:19 selsta: Is 0.18.0.0-release sufficient for the next fork? 04:56:08 Steven_M: Looks like yes unless you're using trezor or ledger with monerod: https://www.getmonero.org/2022/08/11/monero-0.18.1.0-released.html 04:59:31 DeanGuss: that's what I thought, but figured I'd double check. Thanks. :-) 05:00:58 Almost up to 9 hours here selsta and am at 81% 05:01:21 about 1/2 a million blocks to go 05:01:37 So why are there two hard forks so close together instead of a combined one? 05:03:13 To make sure the network clears of any old style txs 05:03:20 befire totally blocking them 05:03:55 It's way overkill... but this is Monero. ;) 05:07:33 Mochi101: Monero, finishing the job that Bitcoin left half-done. ;-) 05:08:13 yes 09:41:52 Hello everyone 09:49:12 Hello. "Everyone" is still a bit thin on the ground on this quiet Sunday :) 09:56:27 rbrunner: he he :) 14:12:37 DeanGuss: nothing can go wring with an LMDB index 14:12:44 wrong* 14:14:13 cool, figured 14:14:37 \bitcoin needs that because the DB it uses doesn't do atomic transactions 14:14:50 so it can get interrupted in the middle of an update and leave stale index info 14:21:12 < hyc> DeanGuss: nothing can go wring with an LMDB index <-- windows can 14:21:39 IIRC it was found to reorder some writes ? 14:30:40 reordering doesn't matter as long as fsync happens when intended 14:31:11 in safe:sync mode 14:31:14 Except if it crashes in the middle. Which it does. 14:32:08 And I suspect there's still a bug somewhere in db_lmdb.cpp, there's just too much report of corruption. 14:32:26 hmm. I have an upstream patch for Windows to do unbuffered writes, that may solve any reordering issue 14:32:38 corruption only on windows? 14:33:06 I've never had any corruption on my nodes but they're all linux 14:35:04 might try this commit da0527ac75b811419b7007202799f96b2edb5aef 14:35:15 Mostly windows at least. Never had any either. 14:35:32 and the one after it 147582b5dcd86d1d92bb9a3fda9eb640300ccae3 14:35:50 Which repo is that exactly ? 14:36:02 openldap and lmdb repos 14:36:38 https://github.com/LMDB/lmdb 14:37:00 might need the off_t patches right after taht too, don't remember 14:37:45 https://github.com/LMDB/lmdb/commit/da0527ac75b811419b7007202799f96b2edb5aef 14:38:28 doing write-thru writes means we don't even need to do an explicit flush/fsync 14:39:31 ty 14:39:53 Most windows users probably can't apply but hey, I'll mention them anyway. 14:40:06 might be worth doing an experimental build 14:40:33 but I don't have any machines that would run windows longterm 15:43:35 binaryFate: https://community.rino.io/blocks/frequencies/ seems down 16:01:57 hyc: can you look up if the off_t patches are required and link to them? 16:02:26 then i can make windows binaries and i'm sure there will be a windows user who can test them 16:03:35 Still syncing.. 92% 16:28:29 Go mochi go 16:32:34 Mochi101: Should change the nick to "Mochi92". 16:33:21 A little over 20 hours 16:33:33 selsta, you synced in 8 hours? 16:33:47 yep 16:34:02 Which ssd? 16:34:26 Windows probably slows you down 16:34:46 I have an 860 EVO in this. 16:35:18 So I should upgrade to Gentoo? 16:44:02 Mochi101: so it probably is a combination of your SSD not being the fastest and Windows 16:47:28 Old hardware... 16:49:12 the Mac Mini I used has a fast CPU and NVMe SSD, so basically ideal conditions 16:49:48 I have an NVMe in my other laptop. 19:03:25 selsta: yeah seems like it. basically use all of the commits from April 24-25 2020 19:04:05 also https://github.com/LMDB/lmdb/commit/45745fcd072f1d78eb399417513c7ce0c6663d57 19:15:44 hyc: will try that. what would happen if we update our lmdb to master? 19:16:02 do we have any monero specific patches? 19:20:29 no, there are no monero-specific patches, everything in our tree originally came from mdb.master 19:21:22 we could prob just merge current mdb.master, I did a few full resyncs of that tree in the past 19:31:02 hyc: opened this now but will need testing first https://github.com/monero-project/monero/pull/8501 19:31:03 hmmmm. maybe. looks like b6420e12a967b8e96fd87a86dd8d105962bfdf8b 19:31:15 is missing from upstream 19:33:55 what patch is this? 19:34:38 If you can get me a Win binary with that patch I can sync and see if there are any performance gains. 19:34:57 Once this current sync is done I'll have something to compare it to. 19:35:00 that was one mooo made to tweak errcodes 19:35:37 and looking over the history, there are a few commits in our tree that came from mdb.master3 - the rawpart stuff, specifically 19:35:45 that are deleted in your PR 19:42:29 I've pushed mooo's patch upstream just now 19:53:20 ok, will readd both 19:59:53 selsta, didn't bother you the other day some housekeeping and all the requests to close on Github did it? 20:03:09 Mochi101: github housekeeping is always good 20:03:20 hyc: should the patches apply cleanly from master3 to master? 20:03:58 Mochi101: if you see something to close you can comment or PM me the issue 20:40:32 selsta: I don't recall now, they might have had some conflicts to resolve. best just to re-add the patches from our tree 20:43:19 or I suppose I can push those into mdb.master. I really was only intending for bugfixes and not new features to go into mdb.master now tho 20:47:31 hyc: maybe easier if I close my PR and you do it locally? then you don't have to push to master 20:48:34 ah, just create a new local branch to PR? 20:48:37 sure 21:06:29 so yeah the question is whether this gives a noticeable perf boost on windows. 21:06:41 it should... 21:07:04 and should also fix write ordering 21:08:10 Mochi101: did sync finish for you? 21:08:16 then you can try the new one 21:09:00 123910 blocks to go 21:09:07 will also try sync from scratch with it on Mac 21:09:15 Will be a nice test. 21:29:58 starting sync now 21:31:52 Mac behavior should be unchanged 21:58:43 Daemon is telling me that I have just over 3 hours left to sync over here. 21:58:52 Going on 25 hours. 22:13:15 Mochi101: mine is 49% already 22:13:37 The first half goes super quick. Lots of empty blocks. 22:13:44 ;) 23:17:40 Typical tx size pre bulletproofs was 13kb haha https://xmrchain.net/tx/03efa4e5c5c6d18758549c9154e1029e215d3bdfb95cd5b088fba308d9e5a02f 23:18:01 1in2 out tx 23:23:39 Mochi101: https://github.com/selsta/monero/suites/7809203879/artifacts/329641006 release-v0.18 with the lmdb patch 23:25:45 yea the blockchain would be over 1TB without bulletproofs 23:32:35 they were a miracle, badly needed