fixed bug from refactor (blockchain no longer exports InvalidBlockException).