*** tpb has joined #pettycoin | 00:00 | |
rusty | arhuaco: weird... I've verified that it's sending blocks to you. But looks like you're not receiving them.... | 00:59 |
---|---|---|
rusty | arhuaco: ping me when you get back. I'm going to grab some lunch | 00:59 |
arhuaco | Rusty: I see. Back. | 01:10 |
rusty | arhuaco: hi! OK, I want to see if the packets are getting to your end... | 01:21 |
arhuaco | Rusty: Sure. How can we test? Tcpdump? | 01:23 |
rusty | arhuaco: yeah... I'm just installing it on the other end now. I'll put a breakpoint in, so I can tell youe xactly when it's coming. Should be 880 bytes | 01:24 |
rusty | arhuaco: BTW< are you generating too? | 01:26 |
arhuaco | Rusty: What do you mean by generating? Mining | 01:26 |
arhuaco | ? | 01:26 |
rusty | arhuaco: yep... | 01:26 |
arhuaco | Rusty: I set the mining flag. But I haven't checked if I have mined a block. | 01:27 |
* arhuaco is looking for the pettycoin port. | 01:27 | |
arhuaco | Oh, it's therel. 8323 | 01:31 |
rusty | arhuaco: yep, was just checking. 8323 for my node. | 01:31 |
rusty | arhuaco: now waiting for my v. slow machine to generate a block... | 01:32 |
arhuaco | Running: tcpdump -i wlan0 port 8323 # I haven't used it in a while. Is this what I need? | 01:33 |
rusty | arhuaco: that should work... OK, block coming now... | 01:34 |
rusty | arhuaco: OK, looks like it wrote to 104.131.198.157.50029 and 66.228.55.133.56453 | 01:35 |
rusty | arhuaco: either of them you? | 01:35 |
arhuaco | Mine should be 186.80.93.46 | 01:36 |
arhuaco | 104.131.198.157 is also me, but in the DigigalOcean machine. That Pettycoin is on block 26060. | 01:37 |
arhuaco | Rusty: BTW, I'm behind a nat! I gave you my IP, but I'm natted. | 01:38 |
arhuaco | Rusty: (I guess were talking about a TCP connection anyway...) | 01:38 |
rusty | arhuaco: hmm... OK, so looks like we're not connected, which makes sense | 01:39 |
arhuaco | Rusty: Last messages were: (I guess were talking about a TCP connection anyway...) | 01:40 |
arhuaco | Rusty: Last messages were: Peer 0 @::ffff:128.199.137.156:8323: gave us block 25705: | 01:40 |
arhuaco | Peer 0 @::ffff:128.199.137.156:8323: 85820bd7c76c32e7982cb54a892cb65bb0e3877b733d521517de35df11000000 | 01:40 |
rusty | arhuaco: yeah, so I just fixed a bug where that peername is wrong... | 01:41 |
rusty | arhuaco: it prints its own address, instead of the remote end :( | 01:41 |
rusty | arhuaco: it looks like you're still connected to *a* peer, but don't know who that is. | 01:41 |
rusty | arhuaco: ah, actually, with NAT, if the peer fell off the net, your node might not know. | 01:42 |
rusty | arhuaco: looks like it's time to fix two FIXMES: | 01:42 |
arhuaco | Rusty: I see. | 01:42 |
rusty | (1) Add a timer to occasionally seek more peers. | 01:42 |
rusty | (2) Add a ping message if there's no activity for a while. | 01:43 |
arhuaco | Rusty: I see. So, you think that the (lag) issue now only should happen behind a NAT? | 01:48 |
rusty | arhuaco: well, it's probably more that the remote end vanished without sending a FIN/RST, and with no traffic to trigger it, we never notice it's gone away. | 01:50 |
arhuaco | Rusty: Ah, I see. | 01:51 |
rusty | arhuaco: obviously, the client should be retrying to get more peers anyway. And it should send out a keepalive every 10 minutes or so if there's been no traffic. So that's what I'll work on now (now I've fixed the peer name problem!) | 01:52 |
githubby | [pettycoin] rustyrussell pushed 4 new commits to master: http://git.io/93esrA | 01:54 |
githubby | pettycoin/master 2fe8b28 Rusty Russell: getinfo/getpeerinfo: add uuid fields.... | 01:54 |
githubby | pettycoin/master 0992bb9 Rusty Russell: log: fix peer name.... | 01:54 |
githubby | pettycoin/master 62eb206 Rusty Russell: netaddr: make peer vs local addr explicit.... | 01:54 |
githubby | [pettycoin] rustyrussell pushed 1 new commit to master: http://git.io/4hwocg | 02:10 |
githubby | pettycoin/master 7523a44 Rusty Russell: Fix compile warnings (missing headers) from previous commit.... | 02:10 |
arhuaco | Rusty: Hi there. I'm seeing a segfault now. http://pastebin.com/JmcT596u | 04:22 |
tpb | Title: mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7 - Pastebin.com (at pastebin.com) | 04:22 |
rusty | arhuaco: Hmm, I saw one here too... currently running under valgrind but it hasn't tripped again (yet) | 04:22 |
rusty | arhuaco: don't supposed you could 'gdb pettycoin core' and 'bt'? | 04:23 |
arhuaco | Rusty: Here it is consistent. All the time I start it :-) | 04:23 |
rusty | arhuaco: that's good! | 04:23 |
rusty | arhuaco: ok, since it's not just me, let me see if I can reproduce w/o valgrind. | 04:24 |
arhuaco | Rusty: http://pastebin.com/Lb3K4LVP | 04:25 |
tpb | Title: ==27076== unmarshaled block size 832 ==27076== Invalid read of size 4 ==270 - Pastebin.com (at pastebin.com) | 04:25 |
rusty | arhuaco: well, that's simple, at least. NULL deref. One moment... | 04:26 |
rusty | arhuaco: make clean && make | 04:28 |
rusty | arhuaco: I suspect a structure got out of sync between files | 04:29 |
rusty | arhuaco: if that doesn't fix it, please upload the ~/.pettycoin/blockfile somewhere and I'll load it up here? | 04:30 |
arhuaco | Rusty: Sure. Testing. | 04:31 |
arhuaco | Rusty: Gave us 1 children for c3994085d882c0a5bc582011acdf0b7669b5ae2f18260af0132e6aed04000000 \n Awaiting responses. | 04:35 |
arhuaco | Rusty: Settling with 1 peer. | 04:35 |
rusty | arhuaco: ah, so that was it. I should really enhace my makefiles, sorry :( | 04:35 |
arhuaco | Rusty: Settling with 1 peer. | 04:36 |
arhuaco | Rusty: No problem. I'm glad I can help catch bugs. | 04:43 |
rusty | arhuaco: you're great at finding them!! | 04:43 |
githubby | [pettycoin] rustyrussell pushed 10 new commits to master: http://git.io/1SW0cA | 04:49 |
githubby | pettycoin/master 18054bd Rusty Russell: tx_len: length function for transactions (replacing marshal_tx_len)... | 04:49 |
githubby | pettycoin/master 3f6433d Rusty Russell: tx.c: out-of-line most tx functions.... | 04:49 |
githubby | pettycoin/master 40da5da Rusty Russell: test: add named_blocks common helper.... | 04:49 |
*** rusty has quit IRC | 07:00 | |
*** arhuaco has quit IRC | 09:40 | |
*** arhuaco has joined #pettycoin | 09:52 | |
*** krypton has joined #pettycoin | 09:53 | |
*** krypton has quit IRC | 09:53 | |
*** arhuaco has quit IRC | 14:22 | |
*** arhuaco has joined #pettycoin | 14:34 | |
*** rusty has joined #pettycoin | 22:44 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!