Skip to content

Commit 0d8fbea

Browse files
committed
lint fixes
1 parent 312b6af commit 0d8fbea

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

yarn-project/end-to-end/src/e2e_mempool_limit.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ describe('e2e_mempool_limit', () => {
4242
token.methods.transfer_in_public(defaultAccountAddress, await AztecAddress.random(), 1, 0),
4343
{ from: defaultAccountAddress },
4444
);
45-
const txSize = tx1.getSize();
4645

4746
// set a min tx greater than the mempool so that the sequencer doesn't all of a sudden build a block
4847
await aztecNodeAdmin!.setConfig({ maxPendingTxCount: 2, minTxsPerBlock: 4 });

yarn-project/p2p/src/mem_pools/tx_pool/aztec_kv_tx_pool.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ describe('KV TX pool', () => {
2727
let worldState: MockProxy<WorldStateSynchronizer>;
2828
let db: MockProxy<MerkleTreeReadOperations>;
2929
let nextTxSeed: number;
30-
let mockTxSize: number;
3130
const mockFixedTxSize = 100;
3231

3332
const block1Header = BlockHeader.empty({
@@ -36,19 +35,12 @@ describe('KV TX pool', () => {
3635
const block2Header = BlockHeader.empty({
3736
globalVariables: GlobalVariables.empty({ blockNumber: BlockNumber(2), timestamp: 36n }),
3837
});
39-
const block10Header = BlockHeader.empty({
40-
globalVariables: GlobalVariables.empty({ blockNumber: BlockNumber(10), timestamp: 360n }),
41-
});
4238

4339
const checkPendingTxConsistency = async () => {
4440
const pendingTxHashCount = await txPool.getPendingTxHashes().then(h => h.length);
4541
expect(await txPool.getPendingTxCount()).toEqual(pendingTxHashCount);
4642
};
4743

48-
beforeAll(async () => {
49-
mockTxSize = (await mockTx(1)).getSize();
50-
});
51-
5244
beforeEach(async () => {
5345
nextTxSeed = 1;
5446

yarn-project/p2p/src/mem_pools/tx_pool/aztec_kv_tx_pool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ export class AztecKVTxPool
417417
}
418418

419419
historicalBlockHash = (await tx.data.constants.anchorBlockHeader.hash()).toString();
420-
this.#txHashToHistoricalBlockHeaderHash.set(txHash.toString(), historicalBlockHash);
420+
await this.#txHashToHistoricalBlockHeaderHash.set(txHash.toString(), historicalBlockHash);
421421
}
422422

423423
return {

0 commit comments

Comments
 (0)