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
c4b1f390
Unverified
Commit
c4b1f390
authored
Oct 20, 2022
by
Matthew Slipper
Committed by
GitHub
Oct 20, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3756 from ethereum-optimism/develop
Develop -> Master
parents
842bf6d6
2dd93367
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
40 deletions
+7
-40
plenty-pandas-heal.md
.changeset/plenty-pandas-heal.md
+0
-5
CHANGELOG.md
l2geth/CHANGELOG.md
+6
-0
package.json
l2geth/package.json
+1
-1
layer_two.go
op-chain-ops/genesis/layer_two.go
+0
-4
setters.go
op-chain-ops/genesis/setters.go
+0
-30
No files found.
.changeset/plenty-pandas-heal.md
deleted
100644 → 0
View file @
842bf6d6
---
'
@eth-optimism/l2geth'
:
patch
---
Kick the build
l2geth/CHANGELOG.md
View file @
c4b1f390
# Changelog
# Changelog
## 0.5.27
### Patch Changes
-
596c974e: Kick the build
## 0.5.26
## 0.5.26
### Patch Changes
### Patch Changes
...
...
l2geth/package.json
View file @
c4b1f390
{
{
"name"
:
"@eth-optimism/l2geth"
,
"name"
:
"@eth-optimism/l2geth"
,
"version"
:
"0.5.2
6
"
,
"version"
:
"0.5.2
7
"
,
"private"
:
true
,
"private"
:
true
,
"devDependencies"
:
{}
"devDependencies"
:
{}
}
}
op-chain-ops/genesis/layer_two.go
View file @
c4b1f390
...
@@ -75,9 +75,5 @@ func BuildL2Genesis(db *state.MemoryStateDB, config *DeployConfig, l1Block *type
...
@@ -75,9 +75,5 @@ func BuildL2Genesis(db *state.MemoryStateDB, config *DeployConfig, l1Block *type
return
nil
,
err
return
nil
,
err
}
}
if
err
:=
MigrateDepositHashes
(
db
);
err
!=
nil
{
return
nil
,
err
}
return
db
.
Genesis
(),
nil
return
db
.
Genesis
(),
nil
}
}
op-chain-ops/genesis/setters.go
View file @
c4b1f390
...
@@ -115,36 +115,6 @@ func SetImplementations(db vm.StateDB, storage state.StorageConfig, immutable im
...
@@ -115,36 +115,6 @@ func SetImplementations(db vm.StateDB, storage state.StorageConfig, immutable im
return
nil
return
nil
}
}
// Get the storage layout of the LegacyMessagePasser
// Iterate over the storage layout to know which storage slots to ignore
// Iterate over each storage slot, compute the migration
func
MigrateDepositHashes
(
db
vm
.
StateDB
)
error
{
layout
,
err
:=
bindings
.
GetStorageLayout
(
"LegacyMessagePasser"
)
if
err
!=
nil
{
return
err
}
// Build a list of storage slots to ignore. The values in the
// mapping are guaranteed to not be in this list because they are
// hashes.
ignore
:=
make
(
map
[
common
.
Hash
]
bool
)
for
_
,
entry
:=
range
layout
.
Storage
{
encoded
,
err
:=
state
.
EncodeUintValue
(
entry
.
Slot
,
0
)
if
err
!=
nil
{
return
err
}
ignore
[
encoded
]
=
true
}
return
db
.
ForEachStorage
(
predeploys
.
LegacyMessagePasserAddr
,
func
(
key
,
value
common
.
Hash
)
bool
{
if
_
,
ok
:=
ignore
[
key
];
ok
{
return
true
}
// TODO(tynes): Do the value migration here
return
true
})
}
// SetPrecompileBalances will set a single wei at each precompile address.
// SetPrecompileBalances will set a single wei at each precompile address.
// This is an optimization to make calling them cheaper. This should only
// This is an optimization to make calling them cheaper. This should only
// be used for devnets.
// be used for devnets.
...
...
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