Incorrect Data Testing #4734
Replies: 5 comments 3 replies
-
Could you clarify what you mean by "incorrect data" in this context? We don't have a specific tool for this, and you would need to modify the CKB node yourself and compile it to simulate a node that reports incorrect data. |
Beta Was this translation helpful? Give feedback.
-
Could you provide a brief test case to help us better understand your requirements? |
Beta Was this translation helpful? Give feedback.
-
While it's impossible to generate incompatible data directly through RPC, you can employ an incompatible CKB version to create this data beforehand. Afterward, other nodes can be synced with this node to obtain the incompatible data, which will cause the synchronization process to hang. like:https://github.com/cryptape/ckb-py-integration-test/blob/main/test_cases/soft_fork/test_sync_dao_lock_size_mismatch.py |
Beta Was this translation helpful? Give feedback.
-
I want to change specific details that are being reported by the RPC. Particularly, I want to change the CKB amount and the data for specific cells when get_live_cell is called. I want to generate erroneous results for two scenarios:
Modifying the CKB node with a hard code modification to give incorrect data for a specific cell is an acceptable solution since this is a limited test. A proxy that manipulates data would also be acceptable. I could use suggestions on what the most simple path would be. |
Beta Was this translation helpful? Give feedback.
-
Another problem is that the node providing invalid data will be banned by other nodes, which leads to a limited window for testing. If you meet such problems, I think we need a config option in CKB to disable banning malicious nodes for testing. |
Beta Was this translation helpful? Give feedback.
-
I'm working on some testing and I need to create a testnet where there is a node that reports incorrect data to other nodes and also via the RPC. Do we have any tools or existing testing forks that do this?
Beta Was this translation helpful? Give feedback.
All reactions