Author: toad
Date: 2007-06-12 21:23:45 +0000 (Tue, 12 Jun 2007)
New Revision: 13542

Modified:
   trunk/freenet/src/freenet/node/updater/NodeUpdateManager.java
   trunk/freenet/src/freenet/node/updater/UpdateOverMandatoryManager.java
Log:
Remove the peers-say-it's-blown message when we've fetched it.

Modified: trunk/freenet/src/freenet/node/updater/NodeUpdateManager.java
===================================================================
--- trunk/freenet/src/freenet/node/updater/NodeUpdateManager.java       
2007-06-12 21:16:36 UTC (rev 13541)
+++ trunk/freenet/src/freenet/node/updater/NodeUpdateManager.java       
2007-06-12 21:23:45 UTC (rev 13542)
@@ -619,6 +619,7 @@
                        // we don't need to advertize updates : we are not 
going to do them
                        killUpdateAlerts();
                }
+               uom.killAlert();
                broadcastUOMAnnounces();
        }


Modified: trunk/freenet/src/freenet/node/updater/UpdateOverMandatoryManager.java
===================================================================
--- trunk/freenet/src/freenet/node/updater/UpdateOverMandatoryManager.java      
2007-06-12 21:16:36 UTC (rev 13541)
+++ trunk/freenet/src/freenet/node/updater/UpdateOverMandatoryManager.java      
2007-06-12 21:23:45 UTC (rev 13542)
@@ -611,6 +611,7 @@
                                        // Blown: somebody inserted a 
revocation message, but it was corrupt as inserted
                                        // However it had valid signatures etc.

+                                       System.err.println("Got revocation 
certificate from "+source.userToString()+" (fatal error i.e. someone with the 
key inserted bad data)");
                                        // Blow the update, and propagate the 
revocation certificate.
                                        
updateManager.revocationChecker.onFailure(e, state, cleanedBlobFile);
                                        temp.delete();
@@ -640,6 +641,7 @@
                        }

                        public void onSuccess(FetchResult result, ClientGetter 
state) {
+                               System.err.println("Got revocation certificate 
from "+source.userToString());
                                
updateManager.revocationChecker.onSuccess(result, state, cleanedBlobFile);
                                temp.delete();
                        }
@@ -671,5 +673,9 @@
                        // Ignore
                }
        }
+
+       public void killAlert() {
+               updateManager.node.clientCore.alerts.unregister(alert);
+       }

 }


Reply via email to