Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistency checking on dep_group #74

Open
XuJiandong opened this issue Apr 14, 2023 · 0 comments
Open

Consistency checking on dep_group #74

XuJiandong opened this issue Apr 14, 2023 · 0 comments
Assignees

Comments

@XuJiandong
Copy link
Collaborator

Consistency checking fails on tx.json when there is any dep_group. Examples:

{
  "mock_info": {
    "cell_deps": [
      {
        "cell_dep": {
          "out_point": {
            "tx_hash": "0xe2fb199810d49a4d8beec56718ba2593b665db9d52299a0f9e6e75416d73ff5c",
            "index": "0x3"
          },
          "dep_type": "code"
        }
      },
      {
        "cell_dep": {
          "out_point": {
            "tx_hash": "0xe2fb199810d49a4d8beec56718ba2593b665db9d52299a0f9e6e75416d73ff5c",
            "index": "0x1"
          },
          "dep_type": "code"
        },
      },
      {
        "cell_dep": {
          "out_point": {
            "tx_hash": "0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c",
            "index": "0x0"
          },
          "dep_type": "dep_group"
        },
      
      },
      {
        "cell_dep": {
          "out_point": {
            "tx_hash": "0x584ddf4379ae4fc87a435162c77faf9bbd55e5704f7ffbdcfa5052ed81f6770f",
            "index": "0x1"
          },
          "dep_type": "code"
        },
        
      }
    ],
    "header_deps": []
  },
  "tx": {
    "version": "0x0",
    "cell_deps": [
      {
        "out_point": {
          "tx_hash": "0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c",
          "index": "0x0"
        },
        "dep_type": "dep_group"
      },
      {
        "out_point": {
          "tx_hash": "0x584ddf4379ae4fc87a435162c77faf9bbd55e5704f7ffbdcfa5052ed81f6770f",
          "index": "0x1"
        },
        "dep_type": "code"
      }
    ],
    "header_deps": [],
    "inputs": [
      {
        "since": "0x0",
        "previous_output": {
          "tx_hash": "0x129c00d14dfc2180df01382d9313692642c731bcdab75ff9b43cfb2291fd9555",
          "index": "0x0"
        }
      },
      {
        "since": "0x0",
        "previous_output": {
          "tx_hash": "0x7a3ee6010411ab3f314e094abf0be15d6add8f0b56d80c4431fc9b465f329e5b",
          "index": "0x1"
        }
      }
    ],
    "outputs": [
      {
        "capacity": "0x35a4e9000",
        "lock": {
          "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
          "hash_type": "type",
          "args": "0x3c2c45d0def478183ce14337d21bf55fa2308e03"
        },
        "type": {
          "code_hash": "0x8b9cf1c536c2590282c2896ca34778590a3784b7daeafa241fe98e170a743ee0",
          "hash_type": "data",
          "args": "0x937602c81c5e6628e1ff615a91727daa2f6dbded304a5629b78e36e137ec3ee9"
        }
      },
      {
        "capacity": "0x48a1ef9d10",
        "lock": {
          "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
          "hash_type": "type",
          "args": "0x3c2c45d0def478183ce14337d21bf55fa2308e03"
        },
        "type": null
      }
    ],
    "outputs_data": [
      "0x17000000984ced3318cf80c981010000",
      "0x"
    ],
    "witnesses": [
      "0x55000000100000005500000055000000410000001e657939f58f9ed8fc677f50a7c13538dafd1d60a88860bbe7dfe7dc3e92bfc557f393b0c2980491b63b2cac1367ef5a93379756e3dc6964cd015413288fb46a01",
      "0x"
    ]
  }
}
@XuJiandong XuJiandong self-assigned this Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant