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

Add standard trace bad block to file #1403

Merged
merged 19 commits into from
Sep 29, 2020

Conversation

matkt
Copy link
Contributor

@matkt matkt commented Sep 28, 2020

Signed-off-by: Karim TAAM karim.t2am@gmail.com

PR description

This method is similar to debug_standardTraceBlockToFile, but can be used to obtain info about a block which has been rejected as invalid.

Request

{
   "jsonrpc":"2.0",
   "method":"debug_standardTraceBadBlockToFile",
   "params":[
      "0x53741e9e94791466d117c5f9e41a2ed1de3f73d39920c621dfc2f294e7779baa"
   ],
   "id":1
}

Response :

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
        "/Users/johndoe/private-network/Clique-Network/Node-1/data/traces/block_0x53741e9e-0-0x407ec43d-1600951088172"
    ]
}

Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
…to-file

Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
…dard-trace-bad-block-to-file

Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
@matkt matkt marked this pull request as ready for review September 28, 2020 17:23
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
@matkt matkt merged commit cfaccb6 into hyperledger:master Sep 29, 2020
@matkt matkt linked an issue Oct 7, 2020 that may be closed by this pull request
@matkt matkt deleted the add-standard-trace-bad-block-to-file branch October 13, 2020 08:36
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

Successfully merging this pull request may close these issues.

Support Standard Bad Blocks JSON-RPC APIs
2 participants