indentation and imports cleaned up
[p2pool.git] / p2pool / bitcoin / data.py
index f48d2eb..dc8b8d6 100644 (file)
@@ -1,11 +1,10 @@
 from __future__ import division
 
 import hashlib
-import itertools
 import struct
 
 from . import base58, skiplists
-from p2pool.util import bases, math, skiplist, variable
+from p2pool.util import bases, math, variable
 import p2pool
 
 class EarlyEnd(Exception):
@@ -643,6 +642,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