|
@@ -195,8 +195,12 @@ router.post("/search", function(req, res) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
query = query.replace(/,/g, ""); |
|
|
query = query.replace(/,/g, ""); |
|
|
|
|
|
|
|
|
|
|
|
console.log('query is' + query); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (query.length < 9) { |
|
|
if (query.length < 9) { |
|
|
if (typeof query == "number") { |
|
|
if (typeof query == "number") { |
|
|
res.redirect("/block-height/" + query); |
|
|
res.redirect("/block-height/" + query); |
|
@@ -216,7 +220,7 @@ router.post("/search", function(req, res) { |
|
|
console.log('Does not start with V'); |
|
|
console.log('Does not start with V'); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
console.log(query.stringLength + ':Not less that 40 chars - going to check transaction and then block hash'); |
|
|
|
|
|
|
|
|
console.log(query.length + ':Not less that 40 chars - going to check transaction and then block hash'); |
|
|
|
|
|
|
|
|
rpcApi.getRawTransaction(query).then(function(tx) { |
|
|
rpcApi.getRawTransaction(query).then(function(tx) { |
|
|
if (tx) { |
|
|
if (tx) { |
|
|