Attempt at force loading of shares

Force load of shares when a block is submitted to the coind but before the db is updated
This commit is contained in:
ahmedbodi 2014-01-30 11:35:28 +00:00
parent b9821911d1
commit df94a0967d

View File

@ -82,6 +82,7 @@ class ShareManagerInterface(object):
def on_submit_block(self, is_accepted, worker_name, block_header, block_hash, timestamp, ip, share_diff):
log.info("Block %s %s" % (block_hash, 'ACCEPTED' if is_accepted else 'REJECTED'))
dbi.do_import(True)
dbi.found_block([worker_name, block_header, block_hash, -1, timestamp, is_accepted, ip, self.block_height, self.prev_hash, share_diff ])
class TimestamperInterface(object):