4626b69381
Pushing through on the ipfs block put use case. Building out the necessary code to write to the blockstore.
15 lines
338 B
C
15 lines
338 B
C
/**
|
|
* A basic storage building block of the IPFS system
|
|
*/
|
|
|
|
/***
|
|
* Adds a node to the dagService and blockService
|
|
* @param node the node to add
|
|
* @returns true(1) on success
|
|
*/
|
|
int ipfs_merkledag_add(struct Node* node) {
|
|
// taken from merkledag.go line 59
|
|
// TODO: put in blockstore
|
|
// TODO: call HasBlock (unsure why as yet)
|
|
|
|
}
|