Zilliqa / zq2

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

Z2-Converter : GetLatestTxBlock api panic #1804

Open chetan-zilliqa opened 5 days ago

chetan-zilliqa commented 5 days ago
 ZQ2 Output (GetLatestTxBlock_d41d8cd9_ZQ2.json):
{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32603,
    "message": "Unhandled panic in RPC handler GetLatestTxBlock"
  }
}

 ZQ1 Output (GetLatestTxBlock_d41d8cd9_ZQ1.json):
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "body": {
      "BlockHash": "d30700722cc3b825cbb7f84cf8c55345f4edbb78a07ec78b31bb3cff3dcf6339",
      "HeaderSign": "9E8664E38774A9A26F6C290A93A4AAF43FBFC4EC34E432B34D1367A20F8E849F01966A1FE2463E536A877C851B93608B90CA39B8B140573E014A64C04C5E379E",
      "MicroBlockInfos": [
        {
          "MicroBlockHash": "cd8836431ef0df2bcbcb4a11bfca4db562fbec5cc781c3a8b3471e313a6827c8",
          "MicroBlockShardId": 1,
          "MicroBlockTxnRootHash": "79c16d3c6c0d016e05dbfd25d82741022e038e5d0c8f5beb8a2fdff20c5c1c29"
        }
      ]
    },
    "header": {
      "BlockNum": "4221487",
      "DSBlockNum": "42215",
      "GasLimit": "200000",
      "GasUsed": "294",
Press Enter to continue, 'q' or 'e' to exit: 
      "MbInfoHash": "d9567fa4452e24f53a4f1bf451b905fd2cbe4ed4933bebf195a279dc5475f608",
      "MinerPubKey": "0x0270B2DDE3F665BCC6655FEBFEDB5F6214D54343E7C8212A786098356D201C9D2B",
      "NumMicroBlocks": 1,
      "NumPages": 1,
      "NumTxns": 2,
      "PrevBlockHash": "681727e7fbf353fad721c49179100b8e81fdf91e90b9b39f32ff2e1809ae4fd8",
      "Rewards": "0",
      "StateDeltaHash": "d58f01377ff02039a9b2659d95bb7136bf9e36d5929240619099cc30fc3e5743",
      "StateRootHash": "6e552f361daea33c12b1e3f9b1e328dbb5f72c5821670f39e5ecbfcd1e3e3498",
      "Timestamp": "1731125222946418",
      "TxnFees": "738000024400",
      "Version": 1
    }
  }
}
bzawisto commented 3 days ago

@chetan-zilliqa The same problem as with https://github.com/Zilliqa/zq2/issues/1801 Deposit contract doesn't have any stakers.