Skip to content

Commit

Permalink
Updated readme for admin commands
Browse files Browse the repository at this point in the history
  • Loading branch information
UlyanaAndrukhiv committed Oct 3, 2024
1 parent a9d2abf commit 86a4e48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions admin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,8 @@ curl localhost:9002/admin/run_command -H 'Content-Type: application/json' -d '{"
curl localhost:9002/admin/run_command -H 'Content-Type: application/json' -d '{"commandName": "protocol-snapshot"}'
curl localhost:9002/admin/run_command -H 'Content-Type: application/json' -d '{"commandName": "protocol-snapshot", "data": { "blocks-to-skip": 10 }}'
```

### To backfill transaction error messages
```
curl localhost:9002/admin/run_command -H 'Content-Type: application/json' -d '{"commandName": "backfill-tx-error-messages", "data": { "start-height": 340, "end-height": 343, "execution-node-ids":["ec7b934df29248d574ae1cc33ae77f22f0fcf96a79e009224c46374d1837824e", "8cbdc8d24a28899a33140cb68d4146cd6f2f6c18c57f54c299f26351d126919e"] }}'
```
4 changes: 0 additions & 4 deletions admin/commands/storage/backfill_tx_error_messages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,6 @@ func (suite *BackfillTxErrorMessagesSuite) TestHandleBackfillTxErrorMessages() {
startHeight := 1
endHeight := 4

//suite.allENIDs = unittest.IdentityListFixture(3, unittest.WithRole(flow.RoleExecution))
//suite.snapshot.On("Identities", mock.Anything).Return(suite.allENIDs, nil)
//suite.state.On("Final").Return(suite.snapshot)

suite.T().Logf(fmt.Sprintf("%v", suite.allENIDs.NodeIDs()))

executorID := suite.allENIDs[0].ID()
Expand Down

0 comments on commit 86a4e48

Please sign in to comment.