Revert "Revert "Blockchain refactor [WIP]""

This commit is contained in:
Chris Troutner
2020-01-28 20:54:43 -08:00
committed by GitHub
parent 912cc9e537
commit 059667b41a
8 changed files with 1649 additions and 13 deletions
+5 -1
View File
@@ -115,6 +115,10 @@ describe("#BlockchainRouter", () => {
)
})
// it("return proper error connection is refused", async () => {
//
// })
it("should GET /getBestBlockHash", async () => {
// Mock the RPC call for unit tests.
if (process.env.TEST === "unit") {
@@ -124,7 +128,7 @@ describe("#BlockchainRouter", () => {
}
const result = await getBestBlockHash(req, res)
//console.log(`result: ${util.inspect(result)}`)
// console.log(`result: ${util.inspect(result)}`)
assert.isString(result)
assert.equal(result.length, 64, "Hash string is fixed length")
File diff suppressed because it is too large Load Diff