fvm liftoff

This commit is contained in:
Jennifer Wang 2022-06-22 15:21:50 -04:00
parent 550d3888ca
commit 17cd28028f
2 changed files with 67 additions and 0 deletions

57
FVMLiftoff.txt Normal file
View File

@ -0,0 +1,57 @@
. +
. ' ` .
. ' . +
. ' . ' |
. ' . ' |
+ . ' . +
| ` . . ' . ' .
| + . ' . +
+ | . ' . ' |
` . | . ' . ' |
+ + . ' . +
| ` . . ' . '
| + . '
+ | . ' .
` . | '. ` .
+ ` . ` .
` . ` . ` . --- ---
` . ` . . + /\__\ ___ /\ \
` . + ' | /:/ _/_ /\ \ |::\ \
` . | | /:/ /\__\ \:\ \ |:|:\ \
` . | . + /:/ /:/ / \:\ \ __|:|\:\ \
+ ' /:/_/:/ / ___ \:\__\ /::::|_\:\__\
\:\/:/ / /\ \ |:| | \:\~~\ \/__/
\::/__/ \:\ \|:| | \:\ \
\:\ \ \:\__|:|__| \:\ \
\:\__\ \::::/__/ \:\__\
\/__/ ~~~~ \/__/
___ ___ ___ ___
/\__\ /\ \ /\__\ /\__\
___ /:/ _/_ ___ /::\ \ /:/ _/_ /:/ _/_
/\__\ /:/ /\__\ /\__\ /:/\:\ \ /:/ /\__\ /:/ /\__\
___ ___ /:/__/ /:/ /:/ / /:/ / /:/ \:\ \ /:/ /:/ / /:/ /:/ /
/\ \ /\__\ /::\ \ /:/_/:/ / /:/__/ /:/__/ \:\__\ /:/_/:/ / /:/_/:/ /
\:\ \ /:/ / \/\:\ \__ \:\/:/ / /::\ \ \:\ \ /:/ / \:\/:/ / \:\/:/ /
\:\ /:/ / ~~\:\/\__\ \::/__/ /:/\:\ \ \:\ /:/ / \::/__/ \::/__/ . +
\:\/:/ / \::/ / \:\ \ \/__\:\ \ \:\/:/ / \:\ \ \:\ \ . ' ` .
\::/ / /:/ / \:\__\ \:\__\ \::/ / \:\__\ \:\__\ . ' . +
\/__/ \/__/ \/__/ \/__/ \/__/ \/__/ \/__/ . ' . ' |
. ' . ' |
+ . ' . +
| ` . . ' . ' .
| + . ' . +
+ | . ' . ' |
` . | . ' . ' |
+ + . ' . +
| ` . . ' . '
| + . '
+ | . ' .
` . | '. ` .
+ ` . ` .
` . ` . ` .
` . ` . . +
` . + ' |
` . | |
` . | . +

View File

@ -1,9 +1,12 @@
package stmgr
import (
"bufio"
"bytes"
"context"
"encoding/binary"
"fmt"
"os"
"sort"
"sync"
"time"
@ -192,6 +195,13 @@ func (sm *StateManager) HandleStateForks(ctx context.Context, root cid.Cid, heig
"to", retCid,
"duration", time.Since(startTime),
)
f, _ := os.Open("/Users/jennijuju/filecoin/lotus/FVMLiftoff.txt")
scanner := bufio.NewScanner(f)
for scanner.Scan() {
line := scanner.Text()
fmt.Println(line)
}
}
return retCid, nil