Zilliqa / zq2

Zilliqa 2.0 code base
Apache License 2.0
9 stars 0 forks source link

Z2-Converter : GetDsBlock, GetLatestDsBlock apis are not implemented #1803

Open chetan-zilliqa opened 23 hours ago

chetan-zilliqa commented 23 hours ago

Here is the output diff

 ZQ2 Output (GetDsBlock_d83dac85_ZQ2.json):
{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32601,
    "message": "Method not found"
  }
}

 ZQ1 Output (GetDsBlock_d83dac85_ZQ1.json):
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "header": {
      "BlockNum": "33434",
      "Difficulty": 104,
      "DifficultyDS": 165,
      "GasPrice": "2000000000",
      "LeaderPubKey": "0x02518F0AAB1A1FCBB907152B55F6F39E7969CF3362B9B7E1F3636F8A8B5ACB48B9",
      "PoWWinners": [
        "0x024C68233A1679F891338DD5E9C5FC94C91F2EDCE5CF18B8BEE255754AACF7F9C6",
        "0x025A80A72494A92B2318C5E8D00780B20D39AEC9247E74EA49F25F537220B72D0C",
        "0x029B883E8C27A395BDFBA80305CD8B92A60F721BB7B5D9FAB91EB7E26B41344560",
        "0x02ADBA99A72B2F4764D0557090EFFD8C39E56D76FF2766196D5A36ECD8AF0EC94B",
        "0x02CAD53E82E0042F4942A1F3A254047101CE65DC8484E03E503AE29026F7970458",
        "0x0320B60B41BE87F8C6FB19BC1FB5ACB5A8C3107C8557F1DCABB5A481F72A08C407",
        "0x03356673A167F4814A4C169B27124A53C86B60DF91A731AB63986CEEB7123EC60F",
        "0x0374622EA8F6AE9FB2D7B26635CA92ED41DC64991C1D95443F5ADCE0B0234E3296",
        "0x03CA440109318658175641338BC4160F30B3805F758894AE3044EB51DFA2FF0777"
Press Enter to continue, 'q' or 'e' to exit: 
      ],
      "PrevHash": "acbc2987bd6d6674bbd479324b21cbdc6e4c3408941e2601da61070db4d99ea7",
      "Timestamp": "1700066349225231"
    },
    "signature": "35AB6EEC14CDC453E702C2F76528D4CFF02C4827349A53F6053FDD4092361BE9D5E3E478673341808480CC7D6E0C11D4AC6658F44017EC889D4B7CE37D0A8CD3"
  }
}
chetan-zilliqa commented 23 hours ago
 ZQ2 Output (GetLatestDsBlock_d41d8cd9_ZQ2.json):
{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32601,
    "message": "Method not found"
  }
}

 ZQ1 Output (GetLatestDsBlock_d41d8cd9_ZQ1.json):
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "header": {
      "BlockNum": "42215",
      "Difficulty": 3,
      "DifficultyDS": 171,
      "GasPrice": "2000000000",
      "LeaderPubKey": "0x027078A7FCA7BA223EAA54C32E4F67C20507F838CE7F5CC9E9E2EE24965A8F8619",
      "PoWWinners": [
        "0x020FD8E4C71589CF65F0D594C00478BEEEB09806DCC9A146280C1C6049A58751C9",
        "0x0239EF20C364DFD14BF95DDBB1ED5E88CE651D4C8BA7E074BCD42E562AA9741293",
        "0x0243DD133B49D6FEE6418D57F7590F6C9D871EDDB00C26F2531837A83BB14A1959",
        "0x02FE297B894BCAAAA6108EA987C684F1203D0330C7976DD4B2B758350C542DEF0A",
        "0x0355A727023C79798E2A6D2D7726E744DCDDBD4AA2178491D83796C4C7D332C08F",
        "0x03C83FDDC83D7ACB8E87C5F98A5D962389E10C3A3C15C0EFE82471E6F48C04235B",
        "0x03EB2C6006DC56410DB3168B038A22CCFBA89DC997ED8C48979957742F632B9CEB",
        "0x03FF1EEEEE7E69CF494E719E9F4909F9AD478F194A176DF7D00BB2057A8C4B2897"
      ],
Press Enter to continue, 'q' or 'e' to exit: 
      "PrevHash": "a4d576b97c4cfbdbc2352c42d0988a3382858209e2090baa63f5b2f58950c51a",
      "Timestamp": "1731122314066501"
    },
    "signature": "4E40D95E00C767FC2E622C48D4D572AFD99C4D9CBA827AFEB8CA1D75F6C154E59C689C4B78A3042EC444418E1F29526BC70240729F61EA0C9DA165E64E45BF4B"
  }
}