mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-26 22:44:17 +00:00
fix test_dht.cpp
This commit is contained in:
parent
0484b9b6d2
commit
63a3d94843
@ -208,7 +208,7 @@ void announce_immutable_items(node_impl& node, udp::endpoint const* eps
|
||||
{
|
||||
TEST_EQUAL(parsed[4]->string_value(), "r");
|
||||
token = parsed[2]->string_value();
|
||||
fprintf(stderr, "got token: %s\n", token.c_str());
|
||||
//fprintf(stderr, "got token: %s\n", token.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -385,7 +385,7 @@ int test_main()
|
||||
{
|
||||
TEST_CHECK(parsed[0]->string_value() == "r");
|
||||
token = parsed[2]->string_value();
|
||||
fprintf(stderr, "got token: %s\n", token.c_str());
|
||||
//fprintf(stderr, "got token: %s\n", token.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -427,7 +427,7 @@ int test_main()
|
||||
{
|
||||
TEST_CHECK(parsed[0]->string_value() == "r");
|
||||
token = parsed[2]->string_value();
|
||||
fprintf(stderr, "got token: %s\n", token.c_str());
|
||||
//fprintf(stderr, "got token: %s\n", token.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -575,7 +575,7 @@ int test_main()
|
||||
{
|
||||
TEST_EQUAL(parsed[4]->string_value(), "r");
|
||||
token = parsed[2]->string_value();
|
||||
fprintf(stderr, "got token: %s\n", token.c_str());
|
||||
//fprintf(stderr, "got token: %s\n", token.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -670,3 +670,20 @@ int test_main()
|
||||
|
||||
#endif
|
||||
|
||||
std::string createSignature(std::string &strMessage, std::string &strUsername)
|
||||
{
|
||||
return std::string("signature!");
|
||||
}
|
||||
|
||||
|
||||
bool verifySignature(std::string const &strMessage, std::string const &strUsername, std::string const &strSign)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
int getBestHeight()
|
||||
{
|
||||
return 10;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user