removed unused Share.stored attribute
authorForrest Voight <forrest.voight@gmail.com>
Mon, 28 Nov 2011 01:34:57 +0000 (20:34 -0500)
committerForrest Voight <forrest.voight@gmail.com>
Mon, 28 Nov 2011 01:34:57 +0000 (20:34 -0500)
p2pool/data.py
p2pool/main.py

index e12c8c6..c085a31 100644 (file)
@@ -139,7 +139,7 @@ class Share(object):
     def from_share1b(cls, share1b, net):
         return cls(net, **share1b)
     
-    __slots__ = 'header previous_block share_info merkle_branch other_txs timestamp share_data new_script subsidy previous_hash previous_share_hash target nonce pow_hash header_hash hash time_seen shared stored peer'.split(' ')
+    __slots__ = 'header previous_block share_info merkle_branch other_txs timestamp share_data new_script subsidy previous_hash previous_share_hash target nonce pow_hash header_hash hash time_seen shared peer'.split(' ')
     
     def __init__(self, net, header, share_info, merkle_branch=None, other_txs=None):
         if header['timestamp'] >= TRANSITION_TIME:
@@ -198,7 +198,6 @@ class Share(object):
         # XXX eww
         self.time_seen = time.time()
         self.shared = False
-        self.stored = False
         self.peer = None
     
     def as_block(self, tracker, net):
@@ -328,7 +327,6 @@ class NewShare(Share):
         # XXX eww
         self.time_seen = time.time()
         self.shared = False
-        self.stored = False
         self.peer = None
     
     def check(self, tracker, now, net):
index 658b959..c8379de 100644 (file)
@@ -109,7 +109,6 @@ def main(args):
                 if contents.hash in tracker.shares:
                     continue
                 contents.shared = True
-                contents.stored = True
                 contents.time_seen = 0
                 tracker.add(contents)
                 if len(tracker.shares) % 1000 == 0 and tracker.shares: