From df94a0967d0c0a010f677cb48a16c1894aef20e4 Mon Sep 17 00:00:00 2001 From: ahmedbodi Date: Thu, 30 Jan 2014 11:35:28 +0000 Subject: [PATCH] Attempt at force loading of shares Force load of shares when a block is submitted to the coind but before the db is updated --- mining/interfaces.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mining/interfaces.py b/mining/interfaces.py index eb4513f..4177aff 100644 --- a/mining/interfaces.py +++ b/mining/interfaces.py @@ -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):