git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5d326bb
)
block-losing issue fix
author
alexhz
<balthazar@yandex.ru>
Sat, 9 Mar 2013 21:56:09 +0000 (21:56 +0000)
committer
alexhz
<balthazar@yandex.ru>
Sat, 9 Mar 2013 21:56:09 +0000 (21:56 +0000)
p2pool/data.py
patch
|
blob
|
history
diff --git
a/p2pool/data.py
b/p2pool/data.py
index
a9bae81
..
4e853d4
100644
(file)
--- a/
p2pool/data.py
+++ b/
p2pool/data.py
@@
-5,7
+5,7
@@
import os
import random
import sys
import time
-import math
+from math import ceil, floor
from twisted.python import log
@@
-120,7
+120,7
@@
class Share(object):
# if coinbase size is greater than 1000 bytes, it should pay fee (0.01 per 1000 bytes)
if coinbase_size > 1000:
- return math.floor(coinbase_size / 1000.0) * minout
+ return ceil(coinbase_size / 1000.0) * minout
return 0