Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
54086830
Commit
54086830
authored
Jan 12, 2021
by
ben-chain
Committed by
GitHub
Jan 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re-enable monotonicity tests (#177)
Co-authored-by:
Karl Floersch
<
karl@karlfloersch.com
>
parent
b0bf6b73
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
OVM_CanonicalTransactionChain.spec.ts
...contracts/OVM/chain/OVM_CanonicalTransactionChain.spec.ts
+10
-6
No files found.
packages/contracts/test/contracts/OVM/chain/OVM_CanonicalTransactionChain.spec.ts
View file @
54086830
...
...
@@ -717,7 +717,7 @@ describe('OVM_CanonicalTransactionChain', () => {
})
})
describe
.
skip
(
'
appendSequencerBatch
'
,
()
=>
{
describe
(
'
appendSequencerBatch
'
,
()
=>
{
beforeEach
(()
=>
{
OVM_CanonicalTransactionChain
=
OVM_CanonicalTransactionChain
.
connect
(
sequencer
...
...
@@ -726,7 +726,7 @@ describe('OVM_CanonicalTransactionChain', () => {
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
const
blockNumber
=
await
getNextBlockNumber
(
ethers
.
provider
)
// do two batch appends for no reason
await
appendSequencerBatch
(
OVM_CanonicalTransactionChain
,
{
...
...
@@ -995,6 +995,8 @@ describe('OVM_CanonicalTransactionChain', () => {
})
it
(
'
should revert if the first context timestamp is > the head queue element timestamp
'
,
async
()
=>
{
const
timestamp
=
(
await
getEthTime
(
ethers
.
provider
))
+
100
const
blockNumber
=
(
await
getNextBlockNumber
(
ethers
.
provider
))
-
1
await
expect
(
appendSequencerBatch
(
OVM_CanonicalTransactionChain
,
{
...
...
@@ -1004,7 +1006,7 @@ describe('OVM_CanonicalTransactionChain', () => {
numSequencedTransactions
:
1
,
numSubsequentQueueTransactions
:
0
,
timestamp
:
timestamp
,
blockNumber
:
0
,
blockNumber
,
},
],
shouldStartAtElement
:
0
,
...
...
@@ -1225,13 +1227,13 @@ describe('OVM_CanonicalTransactionChain', () => {
numSequencedTransactions
:
1
,
numSubsequentQueueTransactions
:
0
,
timestamp
,
blockNumber
:
0
,
blockNumber
:
1
0
,
},
],
shouldStartAtElement
:
0
,
totalElementsToAppend
:
1
,
})
).
to
.
be
.
revertedWith
(
'
Context
timestamp
too far in the past.
'
)
).
to
.
be
.
revertedWith
(
'
Context
block number
too far in the past.
'
)
})
})
...
...
@@ -1370,6 +1372,8 @@ describe('OVM_CanonicalTransactionChain', () => {
FORCE_INCLUSION_PERIOD_SECONDS
*
2
)
const
blockNumber
=
(
await
ethers
.
provider
.
getBlockNumber
())
-
1
const
validTimestamp
=
(
await
getBlockTime
(
ethers
.
provider
))
+
100
await
expect
(
...
...
@@ -1380,7 +1384,7 @@ describe('OVM_CanonicalTransactionChain', () => {
numSequencedTransactions
:
1
,
numSubsequentQueueTransactions
:
0
,
timestamp
:
validTimestamp
,
blockNumber
:
0
,
blockNumber
,
},
],
shouldStartAtElement
:
0
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment