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

request to add more debug logs #575

Open
bap2pecs opened this issue Jan 22, 2024 · 0 comments
Open

request to add more debug logs #575

bap2pecs opened this issue Jan 22, 2024 · 0 comments

Comments

@bap2pecs
Copy link

Context

So I spent lots of time debugging a bridging tx that got stuck.

The API shows

{
    "deposits": [
        {
            "leaf_type": 0,
            "orig_net": 0,
            "orig_addr": "0x0000000000000000000000000000000000000000",
            "amount": "89000000000000000000",
            "dest_net": 1,
            "dest_addr": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
            "block_num": "195",
            "deposit_cnt": "0",
            "network_id": 0,
            "tx_hash": "0x7918b2970e64e66c78ed936d183b0bb48a0d4bd4c23cf3dbe43287daa0bc44b8",
            "claim_tx_hash": "",
            "metadata": "0x",
            "ready_for_claim": false
        }
    ],
    "total_cnt": "1"
}

The claim_tx_hash of the deposit in the http response is empty. In the server logs I found:

zkevm-bridge-service  | 2024-01-21T03:31:23.544Z        ERROR   claimtxman/claimtxman.go:167        error getting Claim Proof for deposit 0. Error: getting the proof failed, error: height: 31, cur: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], error: parentHash: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], error: not found in the Storage, network: 0

by following the code, it seems the problem is the data doesn't exist in the mt.rht table when GetClaimProof() is called

it took me a while to realize that I was setting L2PolygonBridgeAddresses incorrectly in the config. I was using the bridge implementation address in the genesis file. Instead, i should be using the proxy address.

Suggestion

The containers logs don't really help much in debugging this issue. I'd suggest adding more logs to help debug such problems in the future

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