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
340d254b
Commit
340d254b
authored
Oct 17, 2021
by
George Hotz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go test -run TestFullSlow is failing
parent
50354424
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
full.go
mipsevm/full.go
+8
-5
No files found.
mipsevm/full.go
View file @
340d254b
...
@@ -73,8 +73,11 @@ func RunFull() {
...
@@ -73,8 +73,11 @@ func RunFull() {
deploy
(
interpreter
,
statedb
)
deploy
(
interpreter
,
statedb
)
ram
:=
make
(
map
[
uint32
](
uint32
))
ram
:=
make
(
map
[
uint32
](
uint32
))
//LoadMappedFile("../mipigo/test/test.bin", ram, 0)
LoadMappedFile
(
"../mipigo/test/test.bin"
,
ram
,
0
)
LoadMappedFile
(
"test/bin/add.bin"
,
ram
,
0
)
totalSteps
:=
1000
//LoadMappedFile("test/bin/add.bin", ram, 0)
//totalSteps := 12
ZeroRegisters
(
ram
)
ZeroRegisters
(
ram
)
ram
[
0xC000007C
]
=
0x5EAD0000
ram
[
0xC000007C
]
=
0x5EAD0000
...
@@ -90,7 +93,7 @@ func RunFull() {
...
@@ -90,7 +93,7 @@ func RunFull() {
fmt
.
Println
(
"trie is ready, let's run"
)
fmt
.
Println
(
"trie is ready, let's run"
)
fmt
.
Println
(
"state root"
,
root
,
"nodes"
,
len
(
Preimages
))
fmt
.
Println
(
"state root"
,
root
,
"nodes"
,
len
(
Preimages
))
for
step
:=
0
;
step
<
12
;
step
++
{
for
step
:=
0
;
step
<
totalSteps
;
step
++
{
// it's run o clock
// it's run o clock
from
:=
common
.
Address
{}
from
:=
common
.
Address
{}
to
:=
common
.
HexToAddress
(
"0x1337"
)
to
:=
common
.
HexToAddress
(
"0x1337"
)
...
@@ -116,7 +119,7 @@ func RunFull() {
...
@@ -116,7 +119,7 @@ func RunFull() {
}
}
}
}
ParseNode
(
root
,
0
,
func
(
t
common
.
Hash
)
[]
byte
{
/*
ParseNode(root, 0, func(t common.Hash) []byte {
return getTrieNode(t, interpreter, statedb)
return getTrieNode(t, interpreter, statedb)
})
})
*/
}
}
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