-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wip] Data Explorer #9382
[wip] Data Explorer #9382
Conversation
} | ||
|
||
func (b *blockReadBs) Get(ctx context.Context, c cid.Cid) (blocks.Block, error) { | ||
fmt.Println("blocking get ", c) |
Check failure
Code scanning / CodeQL
Log entries created from user input
return blk, err | ||
} | ||
if ipld.IsNotFound(err) { | ||
fmt.Println("wait get ", c) |
Check failure
Code scanning / CodeQL
Log entries created from user input
return nil, err | ||
} | ||
|
||
fmt.Println("get avail ", c) |
Check failure
Code scanning / CodeQL
Log entries created from user input
this is super cool |
} | ||
|
||
func markLinkPaths(pseg []string, links map[string]struct{}) []PathElem { | ||
fmt.Printf("pss %#v\n", pseg) |
Check failure
Code scanning / CodeQL
Log entries created from user input
tpldata["carurl"] = carpath | ||
tpldata["desc"] = fmt.Sprintf("DIR (%d entries)", len(links)) | ||
tpldata["node"] = node.Cid() | ||
if err := tpl.Execute(w, tpldata); err != nil { |
Check warning
Code scanning / CodeQL
Reflected cross-site scripting
tpldata["desc"] = fmt.Sprintf("DIR (%d entries)", len(links)) | ||
tpldata["node"] = node.Cid() | ||
|
||
if err := tpl.Execute(w, tpldata); err != nil { |
Check warning
Code scanning / CodeQL
Reflected cross-site scripting
tpldata["desc"] = ni.Desc | ||
tpldata["node"] = node.Cid() | ||
|
||
if err := tpl.Execute(w, tpldata); err != nil { |
Check warning
Code scanning / CodeQL
Reflected cross-site scripting
92378c7
to
c64f4da
Compare
This will live in a separate repo; Lotus parts landed in #9565 |
Simple tool for exploring data on the network (+some fixes to lotus retrieval to make it work + retrieval into remote blockstore APIs).
I was chiseling at this in random spare moments for a while now, things got to the point where this can be an actually useful tool.
TBD if we want to land this into the lotus repo, or have it live in a separate place.
Some major issues it has / revealed:
failed to lookup index for mh [...], err: datastore: key not found
)Running:
make dataexpl
./dataexpl run
Some of the features:
Go through miners in the market actor:
Display miner sectors/deals
Display deal info
Explore IPLD
Raw blocks
Dag-cbor (eg this Filecoin actor amt)
Dag-pb
Explore ipfs/unixfs
cid.contact integration