Received some replies but nothing final yet. This is still open. I've gone ahead and started some of the work...
poller.py# Manually compares the 'prevhash' to detect a new block and/or update the Merkle tree.
class Poller(object):
def _init_(self, _rpc, _block_chain, _interval = 60):
self.RPC = _rpc
self.BLOCK_CHAIN = _block_chain
self.INTERVAL = _interval
def setInterval(self, _interval):
self.INTERVAL = _interval
updater.py# Retrieves data via the 'getblocktemplate' RPC call
class Updater(object):
def _init_(self, _rpc):
self.RPC = _rpc
def Update(self, force = False):
raise NotImplementedError("Not implimented")
block_chain_interface.pyclass InterfaceBlockChain(object):
def _init_(self):
raise NotImplementedError("This interface must be implimented")
def Submit(self, finalized_block):
raise NotImplementedError("This interface must be implimented")
def Update(self):
raise NotImplementedError("This interface must be implimented")
def GetData(self):
raise NotImplementedError("This interface must be implimented")
def Set_OnSubmit(self, _call_back):
raise NotImplementedError("This interface must be implimented")
def Set_OnUpdate(self, _call_back):
raise NotImplementedError("This interface must be implimented")
A 'finalized_block' will have these methods:
class FinalizedBlock(object):
def getHash(self):
def getHex(self):
def getRaw(self):