Giter VIP home page Giter VIP logo

qmoon's People

Contributors

blackpainter avatar ewagmig avatar ms8922 avatar wall-e avatar xuyz avatar yangchuang64 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qmoon's Issues

Tx table not work well synchronously with page

It is weird that the tx could not be shown correctly in with page.

  1. this is the result w/o page or limit: no page
{"jsonrpc":"2.0","id":"","result":[{"chain_id":"","hash":"C9FAF5D39FBE6B81084B8CC518FB41E9EB1E75AF7B58103BE36E919205C996A9","height":"151422","index":"0","tx_type":"send","tx_type_cn":"转出","gas_wanted":"200000","gas_used":"40063","fee":"1000stake","tx_status":"成功","status":"1","data":[{"type":"send","data":{"from_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","to_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","amount":[{"denom":"stake","amount":"1000000"}]}}],"time":"2019-09-09 11:01:51.1179791+08","log":"[{\"msg_index\":0,\"success\":true,\"log\":\"\"}]","created_at":"0001-01-01 00:00:00.1279790+08","tx_detail":{"send":[{"from_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","to_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","amount":[{"denom":"stake","amount":"1000000"}]}]}},{"chain_id":"","hash":"D6012A7D46E73FEEE53021F7D35778B08151126AF92E03CF63C885A55CD6D521","height":"110159","index":"0","tx_type":"begin_unbonding","tx_type_cn":"终止委托","gas_wanted":"200000","gas_used":"121507","fee":"1000stake","tx_status":"成功","status":"1","data":[{"type":"begin_unbonding","data":{"delegator_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","validator_address":"cosmosvaloper1r6zq2r3d2cddz59p5cat2cazeavh8uq99wxw8l","amount":{"denom":"stake","amount":"1000000"}}}],"time":"2019-09-06 18:08:14.679798+08","log":"[{\"msg_index\":0,\"success\":true,\"log\":\"\"}]","created_at":"0001-01-01 00:00:00.1279790+08","tx_detail":{"begin_unbonding":[{"delegator_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","validator_address":"cosmosvaloper1r6zq2r3d2cddz59p5cat2cazeavh8uq99wxw8l","amount":{"denom":"stake","amount":"1000000"}}]}},{"chain_id":"","hash":"1ADB55BA1029F6E4B4DC5FD3BAF1A20458BCE8D43008CAF4402BD7FBD90C7A44","height":"110156","index":"0","tx_type":"withdraw_delegator_reward","tx_type_cn":"取回分红","gas_wanted":"200000","gas_used":"80770","fee":"1000stake","tx_status":"成功","status":"1","data":[{"type":"withdraw_delegator_reward","data":{"delegator_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","validator_address":"cosmosvaloper1r6zq2r3d2cddz59p5cat2cazeavh8uq99wxw8l"}}],"time":"2019-09-06 18:07:57.679797+08","log":"[{\"msg_index\":0,\"success\":true,\"log\":\"\"}]","created_at":"0001-01-01 00:00:00.1279790+08","tx_detail":{"withdraw_delegator_reward":[{"delegator_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","validator_address":"cosmosvaloper1r6zq2r3d2cddz59p5cat2cazeavh8uq99wxw8l"}]}},{"chain_id":"","hash":"3682205CFA96616235284E12C3785013A350CF5ADB7FDD28F355C03C1269283B","height":"110067","index":"0","tx_type":"send","tx_type_cn":"转出","gas_wanted":"200000","gas_used":"40063","fee":"1000stake","tx_status":"成功","status":"1","data":[{"type":"send","data":{"from_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","to_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","amount":[{"denom":"stake","amount":"1000000"}]}}],"time":"2019-09-06 17:59:33.5797959+08","log":"[{\"msg_index\":0,\"success\":true,\"log\":\"\"}]","created_at":"0001-01-01 00:00:00.1279790+08","tx_detail":{"send":[{"from_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","to_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","amount":[{"denom":"stake","amount":"1000000"}]}]}}]}
  1. this is the result with page: with page
{"jsonrpc":"2.0","id":"","result":[{"chain_id":"","hash":"D6012A7D46E73FEEE53021F7D35778B08151126AF92E03CF63C885A55CD6D521","height":"110159","index":"0","tx_type":"begin_unbonding","tx_type_cn":"终止委托","gas_wanted":"200000","gas_used":"121507","fee":"1000stake","tx_status":"成功","status":"1","data":[{"type":"begin_unbonding","data":{"delegator_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","validator_address":"cosmosvaloper1r6zq2r3d2cddz59p5cat2cazeavh8uq99wxw8l","amount":{"denom":"stake","amount":"1000000"}}}],"time":"2019-09-06 18:08:14.679798+08","log":"[{\"msg_index\":0,\"success\":true,\"log\":\"\"}]","created_at":"0001-01-01 00:00:00.1279790+08","tx_detail":{"begin_unbonding":[{"delegator_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","validator_address":"cosmosvaloper1r6zq2r3d2cddz59p5cat2cazeavh8uq99wxw8l","amount":{"denom":"stake","amount":"1000000"}}]}},{"chain_id":"","hash":"1ADB55BA1029F6E4B4DC5FD3BAF1A20458BCE8D43008CAF4402BD7FBD90C7A44","height":"110156","index":"0","tx_type":"withdraw_delegator_reward","tx_type_cn":"取回分红","gas_wanted":"200000","gas_used":"80770","fee":"1000stake","tx_status":"成功","status":"1","data":[{"type":"withdraw_delegator_reward","data":{"delegator_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","validator_address":"cosmosvaloper1r6zq2r3d2cddz59p5cat2cazeavh8uq99wxw8l"}}],"time":"2019-09-06 18:07:57.679797+08","log":"[{\"msg_index\":0,\"success\":true,\"log\":\"\"}]","created_at":"0001-01-01 00:00:00.1279790+08","tx_detail":{"withdraw_delegator_reward":[{"delegator_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","validator_address":"cosmosvaloper1r6zq2r3d2cddz59p5cat2cazeavh8uq99wxw8l"}]}},{"chain_id":"","hash":"3682205CFA96616235284E12C3785013A350CF5ADB7FDD28F355C03C1269283B","height":"110067","index":"0","tx_type":"send","tx_type_cn":"转出","gas_wanted":"200000","gas_used":"40063","fee":"1000stake","tx_status":"成功","status":"1","data":[{"type":"send","data":{"from_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","to_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","amount":[{"denom":"stake","amount":"1000000"}]}}],"time":"2019-09-06 17:59:33.5797959+08","log":"[{\"msg_index\":0,\"success\":true,\"log\":\"\"}]","created_at":"0001-01-01 00:00:00.1279790+08","tx_detail":{"send":[{"from_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","to_address":"cosmos18pmjwdtfnfyj4ycdd4gjjplejry0h9f5ps2efa","amount":[{"denom":"stake","amount":"1000000"}]}]}}]}

Tx table not updated since last commit 97cc3fd

The Tx table is not updated any more since last commit 97cc3fd 14

  1. investigation is ongoing, the upgrading should take place first at dev environment then migrated to production

  2. new monitor KPI with this metric for Txs updating will also taken into consideration with alignment of Feiping.

Agents split from Qmoon as individual item on data querying

Per talk with @xuyz the Qmoon will restructured with following adjustments:

  1. agent should be split from Qmoon on individual item for querying data from chains, including COSMOS, QOS, .etc
  2. Qmoon keep the server part as data storage and external interfaces to expose the data service

It is still under restructuring, and I believe we will see a lot of changes brought by it and benefit from this change.

交易内容解析插件化

交易内容种类较多,qmoon作为基础引擎,提供插件开发机制,增加交易的解析,查询

新建节点需要默认router,每次设置router太麻烦

通过命令行工具添加两个node

./qmoon node create --nodeName=qos --nodeUrl=http://192.168.1.224:26657/
./qmoon node create --nodeName=qstars --nodeUrl=http://192.168.1.223:26657/

查询node列表时,没有router

{
  "jsonrpc": "2.0",
  "id": "",
  "result": {
    "nodes": [
      {
        "name": "qos",
        "baseUrl": "http://127.0.0.1:9527/node/qos",
        "routers": null
      },
      {
        "name": "qstars",
        "baseUrl": "http://127.0.0.1:9527/node/qstars",
        "routers": null
      }
    ]
  }
}

Validator parse error with latest QOS develop version

Validator info including address info could not be parsed since latest QOS upgrading with internal testnet chain-id pre-2000
From corresponding qoscli the validator query information was shown as below:

[vagrant@vagrant-192-168-1-223 pre2000]$ ./qoscli query validators --node "tcp://192.168.1.218:26657"
[{"validator":"qosval1d880y3hmj62m4c9xx3spfkjm3lh32swrh9mffj","owner":"qosacc1d880y3hmj62m4c9xx3spfkjm3lh32swr04420l","consensusAddress":"qoscons1dxsrlf8tedxtjlvp2pfn8lshup7v6cn800zmj4","consensusPubKey":"qosconspub1zcjduepq5nssdqz29u52uh3rwtvhy50n9aa4mxrny7nx6500sukwn7ggqlnq0epc3v","bondTokens":"10000","description":{"moniker":"qos","logo":"","website":"","details":""},"commission":{"commission_rates":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"update_time":"0001-01-01T00:00:00Z"},"status":"active","InactiveDesc":"","inactiveTime":"0001-01-01T00:00:00Z","inactiveHeight":"0","minPeriod":"0","bondHeight":"0"}]

multiple its not shown in Qmoon thereby in explorer

When multiple tnxs occurred in QOS chain, it seems the tx parsing not so correctly.
Here is the query info from qoscli F.Y.I.

[vagrant@vagrant-192-168-1-223 qos]$ ./qoscli query tx BF16C5E9CD3BF295F7FE03F9D2A2C3FD5540620F205B7DA015086690A9781FA3 --node "tcp://192.168.1.221:26657" --indent
{
  "height": "122762",
  "txhash": "BF16C5E9CD3BF295F7FE03F9D2A2C3FD5540620F205B7DA015086690A9781FA3",
  "gas_wanted": "9223372036854775807",
  "gas_used": "20000020700",
  "events": [
    {
      "type": "invariant_check",
      "attributes": [
        {
          "key": "sender",
          "value": "address1nzv9awha9606jp5rpqe2kujckddpyauggu56ru"
        },
        {
          "key": "height",
          "value": "𝾊"
        }
      ]
    }
  ],
  "tx": {
    "type": "qbase/txs/stdtx",
    "value": {
      "itx": [
        {
          "type": "transfer/txs/TxTransfer",
          "value": {
            "senders": [
              {
                "addr": "address1nzv9awha9606jp5rpqe2kujckddpyauggu56ru",
                "qos": "100000",
                "qscs": null
              }
            ],
            "receivers": [
              {
                "addr": "address1lq75gfdz6rrzf5628s85m0q60n0wsrdnjue3vp",
                "qos": "100000",
                "qscs": null
              }
            ]
          }
        },
        {
          "type": "transfer/txs/TxInvariantCheck",
          "value": {
            "Sender": "address1nzv9awha9606jp5rpqe2kujckddpyauggu56ru"
          }
        }
      ],
      "sigature": [
        {
          "pubkey": {
            "type": "tendermint/PubKeyEd25519",
            "value": "TWqvYXJI3HbrAXWqyy0zd2LQaIozD6av/dJmFAwWfUg="
          },
          "signature": "SvrRmJYZyjmh6eySxRz1paKo6itdmVxsLs/05hf8sCHwktmLps7YfZy+x3W18vhtl7DvelWQUKVMMGj/R+wQDA==",
          "nonce": "13"
        }
      ],
      "chainid": "aquarius-1001",
      "maxgas": "9223372036854775807"
    }
  },
  "timestamp": "2019-09-11T10:09:16Z"
}

While in Qmoon explorer, there is some fault in the tx content:
屏幕快照 2019-09-11 下午6 17 32

new table and component for proposals

A new table should be added for proposal storage, and it should follow current architecture of the Qmoon as an extension to API exposed for external call.

新环境,如果没有创建数据库和表,直接启动服务会panic

启动服务
./qmoon --db.addr=127.0.0.1:5432 server

启动失败,打印错误信息

panic: 读取版本失败pq: relation "qmoon_status" does not exist

goroutine 1 [running]:
github.com/QOSGroup/qmoon/cmd/commands.server(0x12c86a0, 0xc00018de40, 0x0, 0x1, 0x0, 0x0)
	/Users/xutao/go/src/github.com/QOSGroup/qmoon/cmd/commands/server.go:38 +0x2c9
github.com/spf13/cobra.(*Command).execute(0x12c86a0, 0xc00018de20, 0x1, 0x1, 0x12c86a0, 0xc00018de20)
	/Users/xutao/go/pkg/mod/github.com/spf13/[email protected]/command.go:762 +0x473
github.com/spf13/cobra.(*Command).ExecuteC(0x12c8440, 0x8, 0x4, 0x12c81e0)
	/Users/xutao/go/pkg/mod/github.com/spf13/[email protected]/command.go:852 +0x2fd
github.com/spf13/cobra.(*Command).Execute(0x12c8440, 0xc0001f5f60, 0x5)
	/Users/xutao/go/pkg/mod/github.com/spf13/[email protected]/command.go:800 +0x2b
main.main()
	/Users/xutao/go/src/github.com/QOSGroup/qmoon/cmd/main.go:17 +0xb2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.