Skip to content

getTransactionByTracker RPC doesn't return WrapCCC transactions  #1547

Closed

Description

@remagpie

Indexer reports that an AssetTransfer transaction spent a WrapCCC transaction, but CodeChain returns null when getTransactionByTracker RPC is requested with the WrapCCC transaction's tracker.

You can try the request with the following command:
curl https://corgi-rpc.codechain.io -H 'Content-Type: application/json' -d '{"jsonrpc": "2.0", "method": "chain_getTransactionByTracker", "params": ["0x033e49e6e7eeb612694eedfd2b6274c4f0d5b21ce866710c02b4fb8c62f9572b"], "id": null}'

Activity

  1. self-assigned this
    on May 20, 2019
  2. seonpyoKim commented on May 20, 2019

    @seonpyoKim
    Contributor

    Current implementation stores (tracker, transactionAddress) into body_db only for AssetTransaction. Because AssetTransaction does not include WrapCCC, the WrapCCC transaction cannot be tracked back from the corresponding tracker.
    After the patch, existing blocks should be re-synced to apply the correct tracking function.

  3. sgkim126 commented on May 28, 2019

    @sgkim126
    Contributor

    Fixed by #1548

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions