Now using correct hashes on small files

Also added ipfs cat command line functionality
This commit is contained in:
jmjatlanta 2016-12-23 12:53:03 -05:00
parent 8d2aeab016
commit 15b432c70e
5 changed files with 132 additions and 54 deletions

View file

@ -10,3 +10,10 @@ int ipfs_exporter_to_file(const unsigned char* hash, const char* file_name, cons
int ipfs_exporter_object_get(int argc, char** argv);
/***
* Called from the command line with ipfs cat [hash]. Retrieves the object pointed to by hash, and displays its block data (links and data elements)
* @param argc number of arguments
* @param argv arguments
* @returns true(1) on success
*/
int ipfs_exporter_object_cat(int argc, char** argv);