Run the application with the following command from the root directory:
node app.js
Be sure you run npm install
before trying to run the application.
-
The route
submitstar
was renamed tosubmitStar
for consistency. -
The existing routes for getting a block by height/hash were functionally identical (
GET /block/:height
vsGET /block/:hash
). This resulted in the first defined route overriding the second, meaning that the code forGET /block/:hash
was never reached.To resolve this, I renamed the route to get blocks by hash to be
/block/hash/:hash
.