git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
30533b1
)
add Tracker.get_last for completeness
author
Forrest Voight
<forrest@forre.st>
Wed, 10 Aug 2011 07:24:25 +0000 (
03:24
-0400)
committer
Forrest Voight
<forrest@forre.st>
Wed, 10 Aug 2011 07:24:25 +0000 (
03:24
-0400)
p2pool/bitcoin/data.py
patch
|
blob
|
history
diff --git
a/p2pool/bitcoin/data.py
b/p2pool/bitcoin/data.py
index
f48d2eb
..
d0228c1
100644
(file)
--- a/
p2pool/bitcoin/data.py
+++ b/
p2pool/bitcoin/data.py
@@
-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