forked from hyperledger-iroha/iroha-dco
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2cc03a9
commit 1bd28d1
Showing
14 changed files
with
116 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
add_subdirectory(domain) | ||
add_subdirectory(consensus) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib) | ||
|
||
|
||
SET(MESSAGE_PACK_PATH ${PROJECT_SOURCE_DIR}/core/vendor/msgpack-c) | ||
SET(LEVELDB_PATH ${PROJECT_SOURCE_DIR}/core/vendor/leveldb) | ||
|
||
include_directories( | ||
${LEVELDB_PATH}/include | ||
${MESSAGE_PACK_PATH}/include | ||
) | ||
|
||
link_directories( | ||
${MESSAGE_PACK_PATH} | ||
${LEVELDB_PATH}/out-static | ||
) | ||
|
||
ADD_LIBRARY(merkle_transaction_repository STATIC merkle_transaction_repository.cpp) | ||
target_link_libraries(merkle_transaction_repository | ||
msgpackc | ||
snappy | ||
leveldb | ||
exception | ||
) | ||
|
||
ADD_LIBRARY(unconfirmed_transaction_repository STATIC unconfirmed_transaction_repository.cpp) | ||
target_link_libraries(unconfirmed_transaction_repository | ||
msgpackc | ||
snappy | ||
leveldb | ||
exception | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#include <vector> | ||
#include <string> | ||
|
||
#include "../util/yaml_loader.hpp" | ||
#include "../peer_service.hpp" | ||
|
||
namespace peer{ | ||
|
||
std::string Node::getIP() const{ | ||
return ip; | ||
} | ||
|
||
std::string Node::getPublicKey() const{ | ||
return publicKey; | ||
} | ||
|
||
|
||
std::string getMyPublicKey() { | ||
return "Base64";// WIP | ||
} | ||
|
||
std::string getPrivateKey() { | ||
return "Base64";// WIP | ||
} | ||
|
||
std::vector<Node> getPeerList() { | ||
std::unique_ptr<yaml::YamlLoader> yamlLoader(new yaml::YamlLoader(std::string(getenv("IROHA_HOME")) + "/config/config.yml")); | ||
return std::vector<Node>(); | ||
//return std::move(yamlLoader->get<std::vector<std::string> >("peer", "ip")); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
#include "terminate.hpp" | ||
|
||
namespace terminate{ | ||
|
||
void finish(){ | ||
exit(1); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,8 @@ | |
|
||
namespace terminate{ | ||
|
||
void finish(){ | ||
exit(1); | ||
} | ||
|
||
void finish(); | ||
|
||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters