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):
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