File tree 3 files changed +6
-6
lines changed
components/decision-engine 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ module.exports = (repo) => {
40
40
if ( err ) {
41
41
return done ( err )
42
42
}
43
- const blockstore = results [ 0 ] . blockstore
43
+ const blockstore = results [ 0 ] . blocks
44
44
const engine = new DecisionEngine ( blockstore , net || mockNetwork ( ) )
45
45
engine . start ( )
46
46
@@ -167,7 +167,7 @@ module.exports = (repo) => {
167
167
hashes . map ( ( h , i ) => {
168
168
return new Block ( new Buffer ( alphabet [ i ] ) , new CID ( h ) )
169
169
} ) ,
170
- ( b , cb ) => repo . blockstore . put ( b , cb ) ,
170
+ ( b , cb ) => repo . blocks . put ( b , cb ) ,
171
171
cb
172
172
) ,
173
173
( cb ) => eachSeries ( _ . range ( numRounds ) , ( i , cb ) => {
@@ -186,7 +186,7 @@ module.exports = (repo) => {
186
186
innerCb ( )
187
187
} )
188
188
189
- const dEngine = new DecisionEngine ( repo . blockstore , network )
189
+ const dEngine = new DecisionEngine ( repo . blocks , network )
190
190
dEngine . start ( )
191
191
192
192
let partner
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ module.exports = (repo) => {
60
60
return done ( err )
61
61
}
62
62
63
- store = results [ 0 ] . blockstore
63
+ store = results [ 0 ] . blocks
64
64
blocks = results [ 1 ]
65
65
ids = results [ 2 ]
66
66
@@ -285,7 +285,7 @@ module.exports = (repo) => {
285
285
waterfall ( [
286
286
( cb ) => repo . create ( 'world' , cb ) ,
287
287
( repo , cb ) => {
288
- store2 = repo . blockstore
288
+ store2 = repo . blocks
289
289
bs2 = new Bitswap ( libp2pMock , store2 , new PeerBook ( ) )
290
290
utils . applyNetwork ( bs2 , n2 )
291
291
bs2 . start ( )
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ exports.genBitswapNetwork = (n, callback) => {
165
165
// create every BitSwap
166
166
function createBitswaps ( ) {
167
167
netArray . forEach ( ( net ) => {
168
- net . bitswap = new Bitswap ( net . libp2p , net . repo . blockstore , net . peerBook )
168
+ net . bitswap = new Bitswap ( net . libp2p , net . repo . blocks , net . peerBook )
169
169
} )
170
170
establishLinks ( )
171
171
}
You can’t perform that action at this time.
0 commit comments