This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migrate to new ipfs-block and block-service api
- Loading branch information
Showing
50 changed files
with
8,687 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/repo/flatfs/shard/v1/next-to-last/2 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
This is a repository of IPLD objects. Each IPLD object is in a single file, | ||
named <base32 encoding of cid>.data. Where <base32 encoding of cid> is the | ||
"base32" encoding of the CID (as specified in | ||
https://github.com/multiformats/multibase) without the 'B' prefix. | ||
All the object files are placed in a tree of directories, based on a | ||
function of the CID. This is a form of sharding similar to | ||
the objects directory in git repositories. Previously, we used | ||
prefixes, we now use the next-to-last two charters. | ||
|
||
func NextToLast(base32cid string) { | ||
nextToLastLen := 2 | ||
offset := len(base32cid) - nextToLastLen - 1 | ||
return str[offset : offset+nextToLastLen] | ||
} | ||
|
||
For example, an object with a base58 CIDv1 of | ||
|
||
zb2rhYSxw4ZjuzgCnWSt19Q94ERaeFhu9uSqRgjSdx9bsgM6f | ||
|
||
has a base32 CIDv1 of | ||
|
||
BAFKREIA22FLID5AJ2KU7URG47MDLROZIH6YF2KALU2PWEFPVI37YLKRSCA | ||
|
||
and will be placed at | ||
|
||
SC/AFKREIA22FLID5AJ2KU7URG47MDLROZIH6YF2KALU2PWEFPVI37YLKRSCA.data | ||
|
||
with 'SC' being the last-to-next two characters and the 'B' at the | ||
beginning of the CIDv1 string is the multibase prefix that is not | ||
stored in the filename. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
MANIFEST-000007 | ||
MANIFEST-000009 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
=============== Dec 10, 2015 (PST) =============== | ||
07:50:02.056578 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed | ||
07:50:02.057231 db@open opening | ||
07:50:02.057312 journal@recovery F·1 | ||
07:50:02.057514 journal@recovery recovering @3 | ||
07:50:02.058921 mem@flush created L0@5 N·4 S·1KiB "/ip..\xf6\xe4\xa9,v5":"/pk..\xf6\xe4\xa9,v6" | ||
07:50:02.059983 db@janitor F·4 G·0 | ||
07:50:02.060001 db@open done T·2.755926ms | ||
07:50:02.073183 db@close closing | ||
07:50:02.073285 db@close done T·97.522µs | ||
=============== Mar 17, 2017 (CET) =============== | ||
14:09:53.401094 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed | ||
14:09:53.401727 db@open opening | ||
14:09:53.409913 db@janitor F·4 G·0 | ||
14:09:53.409974 db@open done T·8.211747ms |
Oops, something went wrong.