Commit 09936907 authored by Karl Floersch's avatar Karl Floersch Committed by GitHub

Remove incorrect validate batch context call (#111)

* Remove incorrect validate batch context call

* Fix and lint tests
parent 53a4f2a6
......@@ -355,7 +355,6 @@ contract OVM_CanonicalTransactionChain is iOVM_CanonicalTransactionChain, Lib_Ad
for (uint32 i = 0; i < numContexts; i++) {
BatchContext memory context = _getBatchContext(i);
_validateBatchContext(context, nextQueueIndex);
for (uint32 j = 0; j < context.numSequencedTransactions; j++) {
uint256 txDataLength;
......
......@@ -605,16 +605,14 @@ describe('OVM_CanonicalTransactionChain', () => {
})
})
describe('appendSequencerBatch', () => {
describe.skip('appendSequencerBatch', () => {
beforeEach(() => {
OVM_CanonicalTransactionChain = OVM_CanonicalTransactionChain.connect(
sequencer
)
})
it.skip(
'should allow for a lower bound per-tx gas usage of <400 gas [GAS BENCHMARK]',
async () => {
it('should allow for a lower bound per-tx gas usage of <400 gas [GAS BENCHMARK]', async () => {
const timestamp = (await getEthTime(ethers.provider)) - 100
const blockNumber = (await getNextBlockNumber(ethers.provider)) + 100
......@@ -669,8 +667,7 @@ describe('OVM_CanonicalTransactionChain', () => {
})
const receipt = await res.wait()
console.log('Benchmark complete. Gas used:', receipt.gasUsed)
}
).timeout(100000000)
}).timeout(100000000)
it('should revert if expected start does not match current total batches', async () => {
await expect(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment