projects
/
bitcoin:eloipool.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
successfully receive shares from poclbm
[bitcoin:eloipool.git]
/
util.py
1
from hashlib import sha256
2
3
def dblsha(b):
4
return sha256(sha256(b).digest()).digest()
5
6
def swap32(b):
7
o = b''
8
for i in range(0, len(b), 4):
9
o += b[i + 3:i - 1 if i else None:-1]
10
return o
11
12
class RejectedShare(ValueError):
13
pass