mining algorithm requires constant number of sha245, instead of order(size of block). Replaced stupid stackDB thing with a dictionary in ram that is initialized in threads.py