Skip to content
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

Implement Block Format for Blockstore writes #147

Closed
dutterbutter opened this issue Jan 10, 2020 · 0 comments · Fixed by #149
Closed

Implement Block Format for Blockstore writes #147

dutterbutter opened this issue Jan 10, 2020 · 0 comments · Fixed by #149
Assignees

Comments

@dutterbutter
Copy link
Contributor

dutterbutter commented Jan 10, 2020

Blocks written to the blockstore are stored in a particular format consistent with IPFS blocks. When we are informed of new blocks that need to be stored we need to format them accordingly prior to writing. The format is used prior to storing blocks and messages into blockstore.

Go Library of Block Format:

See usage examples in implementations here:

Block Format is defined:

type BasicBlock struct {
	cid  cid.Cid
	data []byte
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant