-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bundle mainnet genesis * convert type to json object * default fields for genesis block * use binary proto encoded format * modify deserialization vitest * update packages --------- Co-authored-by: Tal Derei <[email protected]> Co-authored-by: turbocrime <[email protected]>
- Loading branch information
1 parent
bbf940d
commit edd6fac
Showing
7 changed files
with
143 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { describe, test, expect } from 'vitest'; | ||
import { CompactBlock } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/compact_block/v1/compact_block_pb'; | ||
import { join } from 'path'; | ||
import { readFileSync } from 'fs'; | ||
|
||
describe('Genesis block type conversion', () => { | ||
test('penumbra-1 deserializes correctly', () => { | ||
const filePath = join(__dirname, '../../../apps/extension/public/penumbra-1-genesis.bin'); | ||
const genesisBinaryData = readFileSync(filePath); | ||
expect(() => CompactBlock.fromBinary(new Uint8Array(genesisBinaryData))).not.toThrow(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.