Open GoogleCodeExporter opened 9 years ago
Seems like the remote node didn't respond to a getdata, perhaps? Not sure what
could cause that other than a broken remote peer.
Original comment by mh.in.en...@gmail.com
on 18 Jul 2014 at 3:34
How can we deal with this? Sooner or later, there will be all sorts of broken
peers (intentionally or not).
Original comment by andreas....@gmail.com
on 18 Jul 2014 at 3:55
I think a good first step would be to log a warning if a peer doesn't respond
to a getdata within a reasonable timeout.
Original comment by andreas....@gmail.com
on 18 Jul 2014 at 3:57
Yes, obviously, the right fix is to timeout and retry on another peer.
The types of peer breakage bitcoinj is currently written to handle are limited.
Basically it assumes that a peer might be deliberately tampered with for some
kind of evil end and tries to mitigate where possible, but arbitrary pointless
brokenness isn't dealt with.
Let's wait and see how often this comes up. It should have been fixed once the
user restarted the app or the tx got confirmed anyway.
Original comment by mh.in.en...@gmail.com
on 18 Jul 2014 at 4:01
Actually no, the issue wasn't fixed for the user when the tx was confirmed.
In order to see how often this comes up, we'd need that log message. It's
painful, if not impossible, to grep for missing messages...
Original comment by andreas....@gmail.com
on 18 Jul 2014 at 4:11
Then I think the issue must lie elsewhere, and is not that getdata timed out. I
notice that a reject message was sent later on, but unfortunately support for
printing them is only in git master. Will have a think about it.
Original comment by mh.in.en...@gmail.com
on 18 Jul 2014 at 4:29
I've also had this happen twice in the last month- the log reports a
transaction but my listener functions aren't called. I was using bitcoinj 11.2
a wallet with 15k addresses and several hundred transactions. I upgraded to
11.3 and started a new wallet and haven't seen this since (yet).
Let me know what other debugging data I can get you next time this happens.
Original comment by yayits...@gmail.com
on 19 Jul 2014 at 3:10
There were bug fixes in 0.11.3 that resolved cases where transactions would get
incorrectly dropped. So I suspect that's a different issue.
Original comment by mh.in.en...@gmail.com
on 19 Jul 2014 at 3:25
Original issue reported on code.google.com by
andreas....@gmail.com
on 18 Jul 2014 at 1:36Attachments: