This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 90
90
"libp2p-ipfs" : " ^0.2.0" ,
91
91
"lodash.get" : " ^4.0.0" ,
92
92
"lodash.set" : " ^4.0.0" ,
93
- "peer-id" : " ^0.6.0 " ,
93
+ "peer-id" : " ^0.6.1 " ,
94
94
"peer-info" : " ^0.6.0" ,
95
95
"ronin" : " ^0.3.11" ,
96
96
"temp" : " ^0.8.3"
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ const Block = blocks.Block
8
8
const mDAG = require ( 'ipfs-merkle-dag' )
9
9
const DAGNode = mDAG . DAGNode
10
10
const DAGService = mDAG . DAGService
11
- const Id = require ( 'peer-id' )
12
- const Info = require ( 'peer-info' )
11
+ const peerId = require ( 'peer-id' )
12
+ const PeerInfo = require ( 'peer-info' )
13
13
const multiaddr = require ( 'multiaddr' )
14
14
const importer = require ( 'ipfs-data-importing' ) . import
15
15
const libp2p = require ( 'libp2p-ipfs' )
@@ -40,8 +40,8 @@ function IPFS (repo) {
40
40
if ( err ) {
41
41
throw err
42
42
}
43
- const pid = Id . createFromPrivKey ( config . Identity . PrivKey )
44
- peerInfo = new Info ( pid )
43
+ const pid = peerId . createFromPrivKey ( config . Identity . PrivKey )
44
+ peerInfo = new PeerInfo ( pid )
45
45
config . Addresses . Swarm . forEach ( ( addr ) => {
46
46
peerInfo . multiaddr . add ( multiaddr ( addr ) )
47
47
} )
You can’t perform that action at this time.
0 commit comments