add Tracker.get_last for completeness
authorForrest Voight <forrest@forre.st>
Wed, 10 Aug 2011 07:24:25 +0000 (03:24 -0400)
committerForrest Voight <forrest@forre.st>
Wed, 10 Aug 2011 07:24:25 +0000 (03:24 -0400)
p2pool/bitcoin/data.py

index f48d2eb..d0228c1 100644 (file)
@@ -643,6 +643,10 @@ class Tracker(object):
         height, work, last = self.get_height_work_and_last(share_hash)
         return work
     
+    def get_last(self, share_hash):
+        height, work, last = self.get_height_work_and_last(share_hash)
+        return last
+    
     def get_height_and_last(self, share_hash):
         height, work, last = self.get_height_work_and_last(share_hash)
         return height, last