forked from agorise/c-ipfs
Initialize handlers after peerstore and providerstore
This commit is contained in:
parent
ced96dcf81
commit
8944e407e9
1 changed files with 1 additions and 1 deletions
|
@ -58,10 +58,10 @@ int ipfs_node_online_new(const char* repo_path, struct IpfsNode** node) {
|
|||
// fill in the node
|
||||
local_node->repo = fs_repo;
|
||||
local_node->identity = fs_repo->config->identity;
|
||||
local_node->protocol_handlers = ipfs_node_online_build_protocol_handlers(*node);
|
||||
local_node->peerstore = libp2p_peerstore_new(local_node->identity->peer);
|
||||
local_node->providerstore = libp2p_providerstore_new(fs_repo->config->datastore, local_node->identity->peer);
|
||||
local_node->blockstore = ipfs_blockstore_new(fs_repo);
|
||||
local_node->protocol_handlers = ipfs_node_online_build_protocol_handlers(local_node);
|
||||
local_node->mode = MODE_OFFLINE;
|
||||
local_node->routing = ipfs_routing_new_online(local_node, &fs_repo->config->identity->private_key);
|
||||
local_node->exchange = ipfs_bitswap_new(local_node);
|
||||
|
|
Loading…
Reference in a new issue