graphprotocol / graphprotocol/graph-node
graphman commands for analyzing and fixing bad block issues
Đang mở
@tilacog đang làm issue này rồi.
Từ ngày 11/1/2022.
area/graphman
enhancement
- Ngôn ngữ chính
- Rust
- Star
- 3.2k
- Fork
- 1.1k
- Merge trung bình
- 4 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 1
Mô tả
Sometimes, we're missing transactions from blocks returned from Ethereum nodes.
Usually, we then have to manually
- compare the block in our database with the block returned from the Ethereum node,
- identify what subgraphs are or might be affected,
- roll them back or restart them.
This is tedious. It would be great to have graphman commands that do the following:
- Given a network and block number or hash
- Compare our cached block with the block on this network, identify all contract addresses of mismatching data in the block
- Print a diff of the block
- Print lists of all subgraphs that might be affected:
- All subgraphs for this network that failed on that block
- All subgraphs for this network that have
- data sources for one of the contract addresses included in the mismatching block data
- data sources with no contract address
- Fix a block by refetching it from the network
- Rewind / restart a list of subgraph deployments, if we don't have commands for this yet
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.