Files
pallectrum/electrum
SomberNight 2eec7e1600 network: smarter switch_unwanted_fork_interface
Previously this function would not switch to a different chain if the
current chain contained the preferred block. This was not the intended
behaviour: if there is a *stronger* chain that *also* contains the
preferred block, we should jump to that.

Note that with this commit there will now always be a preferred block
(defaults to genesis). Previously, it might seem that often there was none,
but actually in practice if the user used the GUI context menu to switch
servers even once, there was one (usually genesis).

Hence, with the old code, if an attacker mined a single header which
then got reorged, auto_connect clients which were connected to the
attacker's server would never switch servers (jump chains) even
without the user explicitly configuring preference for the stale branch.
2020-06-21 11:31:54 +02:00
..
2020-06-21 05:16:27 +02:00
2020-06-13 19:12:22 +02:00
2020-06-05 13:17:01 +02:00
2020-05-05 09:23:48 +02:00
2020-05-05 09:23:48 +02:00
2020-06-21 05:16:27 +02:00
2020-06-21 05:17:56 +02:00
2020-02-29 00:20:11 +01:00
2020-05-13 15:13:09 +02:00
2020-06-18 18:18:33 +02:00
2020-06-21 08:23:07 +02:00