Commit Graph

30 Commits (master)

Author SHA1 Message Date
John Jones 98b1e0fef4 Return a copy of the block from the exchange, not the block itself
Returning the block itself will cause problems when a client deallocates
the block.
2017-10-09 10:01:29 -05:00
jmjatlanta b99a78a4d3 Merge branch 'master' of https://github.com/Agorise/c-ipfs
Conflicts:
	test/scripts/run_tests.sh
	test/testit.c
2017-10-09 09:12:14 -05:00
jmjatlanta c0855c9630 Going through tests, verifying functionality 2017-10-09 09:00:48 -05:00
John Jones 596a811d5e testing of using api for binary files 2017-10-04 06:34:37 -05:00
John Jones 630985c698 Adjustments for testing 2017-09-25 15:11:44 -05:00
jmjatlanta 5404fce6ec move api globals to struct 2017-09-25 08:55:42 -05:00
Jose Marcial Vieira Bisneto a907f1dd2d
The API changed pthread to scope, so it can load multiple instances. 2017-09-20 14:39:26 -03:00
jmjatlanta acf506296e Updating tests 2017-09-18 19:04:52 -05:00
jmjatlanta bf87d93136 Updating cid codes 2017-09-04 13:33:56 -05:00
John Jones 407f85bc89 More testing and compat fixes for ipfs 2017-08-31 16:41:10 -05:00
John Jones 0e24b0a1d3 Fix small memory leak. 2017-08-09 12:26:26 -05:00
John Jones c58134db1c Fixing memory leaks 2017-08-08 20:40:35 -05:00
John Jones 3cc75058f0 Fix of memory leaks 2017-08-03 17:46:20 -05:00
jmjatlanta b578e5c13a Fixed tests 2017-08-03 14:35:06 -05:00
John Jones e58909b875 Handle entry in WantlistQueue only once if we found provider 2017-08-02 11:43:48 -05:00
John Jones 9131559a04 correctly handling send of wantlist 2017-08-02 09:04:37 -05:00
John Jones ac5a622400 Passing SessionContext instead of Stream 2017-07-31 13:54:09 -05:00
John Jones 3a68619016 Fixed mem leak and more testing 2017-07-31 13:32:09 -05:00
John Jones e22da601ea bug fixes to client side bitswap 2017-07-31 10:01:06 -05:00
John Jones 059a3286c9 More bitswap implementation 2017-07-31 06:43:15 -05:00
John Jones b3bb857f3a Still testing bitswap 2017-07-27 14:33:19 -05:00
John Jones 73d7d5daed More implementation of bitswap 2017-07-27 12:05:41 -05:00
John Jones e1135fef3b Beginnings of the multithreaded engine
This engine has 2 threads. One to process the request queue, the other
to gather up and build peer messages and send them.
2017-07-27 08:38:57 -05:00
John Jones 10aa932e08 Unit testing and memory fixes 2017-07-26 09:48:04 -05:00
John Jones 692d3406c8 Implementation of a universal bitswap queue
This queue stores both local and remote requests for blocks
2017-07-26 07:38:47 -05:00
John Jones 9924d5dcf7 Connecting bitswap and blockstore 2017-07-24 14:56:30 -05:00
John Jones 4368e052e2 First cut of peer request queue complete 2017-07-24 10:26:07 -05:00
jmjatlanta a63910e0d7 Adding bitswap request queue 2017-07-24 09:09:22 -05:00
John Jones 2bb70b01be Some tweaks to avoid potential problems found during unit testing 2017-07-20 16:10:31 -05:00
jmjatlanta f47a6116f0 Adding basic unit tests for Bitswap protobuf 2017-07-20 15:16:59 -05:00