Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
dguenther committed Aug 20, 2024
1 parent 6dae2a0 commit ce731d7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/mobile-app/data/wallet/writeQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,17 @@ type DBWrite =
export class WriteQueue {
readonly heads: Map<number, { hash: Uint8Array; sequence: number }> =
new Map();
readonly db: WalletDb;
readonly network: Network;

private writeQueue: DBWrite[] = [];

readonly nullifierSet = new Set<string>();

constructor(
readonly db: WalletDb,
readonly network: Network,
) {}
constructor(db: WalletDb, network: Network) {
this.db = db;
this.network = network;
}

getHead(id: number): { hash: Uint8Array; sequence: number } | undefined {
return this.heads.get(id);
Expand Down

0 comments on commit ce731d7

Please sign in to comment.