Compare commits
No commits in common. "8df2a03d5a41bd195506498150468193b6c41bc0" and "8527901e6c5b12a1bd06f1d9f231196c9c736f72" have entirely different histories.
8df2a03d5a
...
8527901e6c
@ -1,20 +1,12 @@
|
||||
# standard imports
|
||||
import hashlib
|
||||
|
||||
|
||||
class SyncFilter:
|
||||
|
||||
def sum(self):
|
||||
s = self.common_name()
|
||||
h = hashlib.sha256()
|
||||
h.update(s.encode('utf-8'))
|
||||
return h.digest()
|
||||
|
||||
|
||||
def filter(self, conn, block, tx):
|
||||
def common_name(self):
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
def common_name(self):
|
||||
s = self.__module__ + '.' + self.__class__.__name__
|
||||
return s.replace('.', '_')
|
||||
def sum(self):
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
def filter(self, conn, block, tx):
|
||||
raise NotImplementedError()
|
||||
|
Loading…
Reference in New Issue
Block a user