Implemented client side of journaling protocol

This commit is contained in:
jmjatlanta 2017-08-28 06:56:22 -05:00
parent 60c6085469
commit 1b69cdf1e8
6 changed files with 210 additions and 26 deletions

View file

@ -44,8 +44,7 @@ struct Libp2pProtocolHandler* ipfs_journal_build_protocol_handler(const struct I
/***
* Send a journal message to a remote peer
* @param local_node the local node
* @param peer the peer to send it to
* @param replication_peer the peer to send it to
* @returns true(1) on success, false(0) otherwise.
*/
int ipfs_journal_sync(struct IpfsNode* local_node, struct Libp2pPeer* peer);
int ipfs_journal_sync(struct IpfsNode* local_node, struct ReplicationPeer* replication_peer);