URI: 
       tWarn if server is serving bad address histories - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit f5a43b873874caaf0fcf489ed316d07ca47c252a
   DIR parent 93b964f11dfd095300b668d1b201338791663c93
  HTML Author: Neil Booth <kyuupichan@gmail.com>
       Date:   Sun,  6 Sep 2015 19:49:35 +0900
       
       Warn if server is serving bad address histories
       
       Diffstat:
         M lib/synchronizer.py                 |       4 ++++
       
       1 file changed, 4 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/lib/synchronizer.py b/lib/synchronizer.py
       t@@ -98,6 +98,10 @@ class Synchronizer(ThreadJob):
        
                # Check that the status corresponds to what was announced
                hist = map(lambda item: (item['tx_hash'], item['height']), result)
       +        # Note if the server hasn't been patched to sort the items properly
       +        if hist != sorted(hist, key=lambda x:x[1]):
       +            self.network.interface.print_error("serving improperly sorted "
       +                                               "address histories")
                if self.wallet.get_status(hist) != server_status:
                    self.print_error("error: status mismatch: %s" % addr)
                    return