It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
--- a/p2pool/work.py
+++ b/p2pool/work.py
@@ -5,7 +5,7 @@ import random
import sys
import time
-from twisted.internet import defer
+from twisted.internet import defer, reactor
from twisted.python import log
import bitcoin.getwork as bitcoin_getwork, bitcoin.data as bitcoin_data
@@ -14,6 +14,7 @@ from util import forest, jsonrpc, variable, deferral, math, pack
import p2pool, p2pool.data as p2pool_data
class WorkerBridge(worker_interface.WorkerBridge):
+ res2 = dict()
COINBASE_NONCE_LENGTH = 4
def __init__(self, node, my_pubkey, donation_percentage, merged_urls, worker_fee):
@@ -154,9 +155,32 @@ class WorkerBridge(worker_interface.WorkerBridge):
desired_share_target = bitcoin_data.difficulty_to_target(float(min_diff_str))
except:
pass
-
- pubkey = self.my_pubkey
-
+
+ pubkey = user
+
+ @defer.inlineCallbacks
+ def validate_pubkey(self, pubkey1):
+ res = yield self.node.bitcoind.rpc_validatepubkey(pubkey1)
+ defer.returnValue(res)
+
+ res1 = validate_pubkey(self, pubkey)
+
+ self.res2[pubkey] = 0
+
+ def mycallback(x):
+ self.res2[pubkey] = x
+
+ res1.addCallback(mycallback)
+
+ while self.res2[pubkey] == 0:
+ reactor.iterate(0.055)
+ time.sleep(0.001)
+
+ if not self.res2[pubkey]['isvalid']:
+ pubkey = self.my_pubkey
+ else:
+ pubkey=pubkey.decode('hex')
+
return user, pubkey, desired_share_target, desired_pseudoshare_target
def preprocess_request(self, user):