Commit 78196f9c authored by George Hotz's avatar George Hotz Committed by George Hotz

don't write checkpoint if state root wasn't outputted

parent 97433e28
...@@ -5,6 +5,7 @@ import ( ...@@ -5,6 +5,7 @@ import (
"encoding/binary" "encoding/binary"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"log"
"os" "os"
"strconv" "strconv"
...@@ -96,6 +97,10 @@ func main() { ...@@ -96,6 +97,10 @@ func main() {
} }
if target == -1 { if target == -1 {
if ram[0x30000800] != 0x1337f00d {
log.Fatal("failed to output state root, exiting")
}
output_filename := fmt.Sprintf("%s/output", root) output_filename := fmt.Sprintf("%s/output", root)
outputs, err := ioutil.ReadFile(output_filename) outputs, err := ioutil.ReadFile(output_filename)
check(err) check(err)
......
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