@@ -112,7 +112,7 @@ class NodeConnectionManager {
112112 this . nodeManager = nodeManager ;
113113 for ( const nodeIdEncoded in this . seedNodes ) {
114114 const nodeId = nodesUtils . decodeNodeId ( nodeIdEncoded ) ! ;
115- await this . nodeGraph . setNode ( nodeId , this . seedNodes [ nodeIdEncoded ] ) ; // FIXME: also fine implicit transactions
115+ await this . nodeGraph . setNode ( nodeId , this . seedNodes [ nodeIdEncoded ] ) ;
116116 }
117117 this . logger . info ( `Started ${ this . constructor . name } ` ) ;
118118 }
@@ -264,7 +264,6 @@ class NodeConnectionManager {
264264 ) } `,
265265 ) ;
266266 // Creating the connection and set in map
267- // FIXME: this is fine, just use the implicit tran. fix this when adding optional transactions
268267 const targetAddress = await this . findNode ( targetNodeId ) ;
269268 if ( targetAddress == null ) {
270269 throw new nodesErrors . ErrorNodeGraphNodeIdNotFound ( ) ;
@@ -411,7 +410,6 @@ class NodeConnectionManager {
411410 return address ;
412411 }
413412
414- // FIXME: getClosestNodes was moved to NodeGraph? that needs to be updated.
415413 /**
416414 * Attempts to locate a target node in the network (using Kademlia).
417415 * Adds all discovered, active nodes to the current node's database (up to k
@@ -438,7 +436,6 @@ class NodeConnectionManager {
438436 // Let foundTarget: boolean = false;
439437 let foundAddress : NodeAddress | undefined = undefined ;
440438 // Get the closest alpha nodes to the target node (set as shortlist)
441- // FIXME: no tran
442439 const shortlist = await this . nodeGraph . getClosestNodes (
443440 targetNodeId ,
444441 this . initialClosestNodes ,
@@ -473,7 +470,6 @@ class NodeConnectionManager {
473470 try {
474471 // Add the node to the database so that we can find its address in
475472 // call to getConnectionToNode
476- // FIXME: no tran
477473 await this . nodeGraph . setNode ( nextNodeId , nextNodeAddress . address ) ;
478474 await this . getConnection ( nextNodeId , timer ) ;
479475 } catch ( e ) {
@@ -496,7 +492,6 @@ class NodeConnectionManager {
496492 continue ;
497493 }
498494 if ( nodeId . equals ( targetNodeId ) ) {
499- // FIXME: no tran
500495 await this . nodeGraph . setNode ( nodeId , nodeData . address ) ;
501496 foundAddress = nodeData . address ;
502497 // We have found the target node, so we can stop trying to look for it
0 commit comments