This repository was archived by the owner on Mar 10, 2020. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 4 files changed +2
-106
lines changed Expand file tree Collapse file tree 4 files changed +2
-106
lines changed Original file line number Diff line number Diff line change 11# Bitswap API  
22
33*  [ bitswap.wantlist] ( #bitswapwantlist ) 
4- *  [ bitswap.unwant] ( #bitswapunwant ) 
54*  [ bitswap.stat] ( #bitswapstat ) 
65
7- #### ` bitswap.unwant `  
8- 
9- >  Removes a given block from your wantlist
10- 
11- ##### ` Go `  ** WIP**  
12- 
13- ##### ` JavaScript `  - ipfs.bitswap.unwant(cid, [ callback] ) 
14- 
15- ` cid `  is a [ cid] [ cid ]  which can be passed as:
16- 
17- -  CID, a CID instance
18- -  String, the base58 encoded version of the multihash
19- 
20- ` callback `  must follow ` function (err) {} `  signature, where ` err `  is an error if the operation was not successful.
21- 
22-   ** Example:** 
23- 
24-   ``` JavaScript 
25-   ipfs .bitswap .unwant (' QmSoLSafTMBsPKadTEgaXctDQVcqN88CNLHXMkTNwMKPnu'  , (err ) =>  {
26-     if  (err) throw  err
27-     console .log (' Done'  )
28-   })
29-   ``` 
30- 
31- ##### ` Go `  ** WIP**  
32- 
336### ` bitswap.wantlist `  
347
358>  Returns the wantlist, optionally filtered by peer ID
Original file line number Diff line number Diff line change 1+ 36541
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ const { createSuite } = require('../utils/suite')
33
44const  tests  =  { 
55  stat : require ( './stat' ) , 
6-   wantlist : require ( './wantlist' ) , 
7-   unwant : require ( './unwant' ) 
6+   wantlist : require ( './wantlist' ) 
87} 
98
109module . exports  =  createSuite ( tests ) 
  Load Diff This file was deleted. 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments