Commit 48577497 authored by George Hotz's avatar George Hotz

it's working

parent 70a1cd1f
...@@ -59,6 +59,8 @@ process done with hash 0x5c45998dfbf9ce70bcbb80574ed7a622922d2c775e0a2331fe5a8b8 ...@@ -59,6 +59,8 @@ process done with hash 0x5c45998dfbf9ce70bcbb80574ed7a622922d2c775e0a2331fe5a8b8
npx hardhat node --fork https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161 npx hardhat node --fork https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161
# testing on hardhat (forked mainnet) # testing on hardhat (forked mainnet)
# challenger is pretending the block 10 transition is the transition for 1171895
# this will conflict at the first step
rm -rf /tmp/cannon/* rm -rf /tmp/cannon/*
mipsevm/mipsevm mipsevm/mipsevm
npx hardhat run scripts/deploy.js npx hardhat run scripts/deploy.js
......
...@@ -66,6 +66,7 @@ contract Challenge { ...@@ -66,6 +66,7 @@ contract Challenge {
c.challenger = msg.sender; c.challenger = msg.sender;
// the state is set // the state is set
// NOTE: if they disagree on the start, 0->1 will fail
c.assertedState[0] = startState; c.assertedState[0] = startState;
c.defendedState[0] = startState; c.defendedState[0] = startState;
c.assertedState[stepCount] = finalSystemState; c.assertedState[stepCount] = finalSystemState;
......
...@@ -71,7 +71,6 @@ func main() { ...@@ -71,7 +71,6 @@ func main() {
os.Exit(0) os.Exit(0)
} }
// TODO: this is actually step 0->1. Renumber as appropriate
LoadMappedFileUnicorn(mu, fmt.Sprintf("%s/input", root), ram, 0x30000000) LoadMappedFileUnicorn(mu, fmt.Sprintf("%s/input", root), ram, 0x30000000)
mu.Start(0, 0x5ead0004) mu.Start(0, 0x5ead0004)
......
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