Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/bootstrap/source/bootstrapper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ describe<{

await assert.rejects(
() => bootstrapper.bootstrap(),
"Previous block is set to snapshot, but there is no snapshot defined in milestones",
"Snapshot is defined in milestones, but the genesis block has no parent hash",
);

// #setGenesisCommit
Expand Down
2 changes: 1 addition & 1 deletion packages/bootstrap/source/bootstrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export class Bootstrapper {
// assume snapshot is present if the previous block points to a non-zero hash
if (genesisBlock.block.parentHash === ZeroHash) {
if (milestone.snapshot) {
throw new Error("Previous block is set to snapshot, but there is no snapshot defined in milestones");
throw new Error("Snapshot is defined in milestones, but the genesis block has no parent hash");
}

return;
Expand Down
6 changes: 0 additions & 6 deletions packages/contracts/source/contracts/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ export interface LegacyImporter {
snapshotHash: string;
genesisBlockNumber: bigint;
previousGenesisBlockHash: string;
totalSupply: bigint;
result: LegacyImportResult | undefined;
}

export interface LegacyImportOptions {
Expand Down Expand Up @@ -51,16 +49,12 @@ export interface ImportedLegacyMultiSignatureAttribute {
}

export interface ImportedLegacyVoter {
readonly arkAddress: string;
readonly ethAddress?: string;
readonly publicKey: string;
readonly vote: string;
}

export interface ImportedLegacyValidator {
readonly arkAddress: string;
readonly ethAddress: string;
readonly publicKey: string;
readonly isResigned: boolean;

username: string;
Expand Down
5 changes: 5 additions & 0 deletions packages/snapshot-legacy-importer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@
},
"devDependencies": {
"@mainsail/contracts": "workspace:*",
"@mainsail/crypto-address-base58": "workspace:*",
"@mainsail/crypto-address-keccak256": "workspace:*",
"@mainsail/crypto-hash-bcrypto": "workspace:*",
"@mainsail/crypto-key-pair-ecdsa": "workspace:*",
"@mainsail/test-runner": "workspace:*",
"@mainsail/validation": "workspace:*",
"uvu": "0.5.6"
},
"engines": {
Expand Down
1 change: 0 additions & 1 deletion packages/snapshot-legacy-importer/source/defaults.ts

This file was deleted.

Loading
Loading