瀏覽代碼

05/26/2021 07:23:47 AM MST

master
coldstar 3 年之前
父節點
當前提交
4a4f409be0
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      routes/baseActionsRouter.js

+ 5
- 1
routes/baseActionsRouter.js 查看文件

@@ -195,8 +195,12 @@ router.post("/search", function(req, res) {
return;
}


query = query.replace(/,/g, "");

console.log('query is' + query);


if (query.length < 9) {
if (typeof query == "number") {
res.redirect("/block-height/" + query);
@@ -216,7 +220,7 @@ router.post("/search", function(req, res) {
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) {
if (tx) {


Loading…
取消
儲存