From 86a4e487264b7be818542582f7ef7deb388040ce Mon Sep 17 00:00:00 2001 From: UlyanaAndrukhiv Date: Thu, 3 Oct 2024 14:59:12 +0300 Subject: [PATCH] Updated readme for admin commands --- admin/README.md | 5 +++++ admin/commands/storage/backfill_tx_error_messages_test.go | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/admin/README.md b/admin/README.md index 9da63d0831e..4603b90c7e8 100644 --- a/admin/README.md +++ b/admin/README.md @@ -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"] }}' +``` diff --git a/admin/commands/storage/backfill_tx_error_messages_test.go b/admin/commands/storage/backfill_tx_error_messages_test.go index 545a7db6459..a98027cbe14 100644 --- a/admin/commands/storage/backfill_tx_error_messages_test.go +++ b/admin/commands/storage/backfill_tx_error_messages_test.go @@ -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()