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

Commit

Permalink
Fix data stream
Browse files Browse the repository at this point in the history
  • Loading branch information
Incede committed Nov 23, 2023
1 parent 08990f4 commit 8b66166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commander/src/bootstrapping/commands/blockchain/hash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export class HashCommand extends Command {
const dbHash = crypto.createHash('sha256');

const hash: Buffer = await new Promise((resolve, reject) => {
stream.on('data', (chunk: Buffer) => {
dbHash.update(chunk);
stream.on('data', ({ value }: { key: Buffer; value: Buffer }) => {
dbHash.update(value);
});

stream.on('error', error => {
Expand Down

0 comments on commit 8b66166

Please sign in to comment.