Skip to content

Conversation

@abhakish
Copy link

@abhakish abhakish commented Jan 30, 2023

Signed-off-by: Abhay Kishore [email protected]

What this PR does / why we need it:

It will purge the old data present in explorer db based on the parameter blockCount.blockCount property can be defined in config.json.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation, usage docs, etc.:


@abhakish abhakish requested a review from a team as a code owner January 30, 2023 09:40
@arigelas arigelas requested review from arigelas and removed request for arigelas January 30, 2023 11:11
"name": "Test Network",
"profile": "./connection-profile/test-network.json"
"profile": "./connection-profile/test-network.json",
"blockCount": "5"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick]: update this to numerical value.

this.network_name = args[1];
}

this.blockCount = network_configs[this.network_id].blockCount;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blockCount needs to be defined in config.json in (app/platform/fabric/config.json)

* @returns
* @memberof CRUDService
*/
async deleteBlock(network_name, channel_genesis_hash, blockCount) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ongoing we can add types also in the function args

@adityajoshi12
Copy link
Contributor

Duplicate of #362

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants