Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Align DB keys in legacy store for v3 blocks and transactions #8901

Closed
Tracked by #7226
ishantiw opened this issue Aug 25, 2023 · 0 comments
Closed
Tracked by #7226

Align DB keys in legacy store for v3 blocks and transactions #8901

ishantiw opened this issue Aug 25, 2023 · 0 comments
Assignees
Milestone

Comments

@ishantiw
Copy link
Contributor

ishantiw commented Aug 25, 2023

Description

Align DB keys in legacy store for v3 blocks and transactions

In 5.3 version of SDK,

export const DB_KEY_BLOCKS_ID = 'blocks:id';
export const DB_KEY_BLOCKS_HEIGHT = 'blocks:height';
export const DB_KEY_TRANSACTIONS_BLOCK_ID = 'transactions:blockID';
export const DB_KEY_TRANSACTIONS_ID = 'transactions:id';

In legacy module,

export const DB_KEY_BLOCK_ID = Buffer.from([0]);
export const DB_KEY_BLOCK_HEIGHT = Buffer.from([1]);
export const DB_KEY_LEGACY_BRACKET = Buffer.from([2]);

Acceptance Criteria

  • Should have all the DB keys aligned for the migration
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants