From 05fbd362b27bf077b42668f8dc4d3613c9537a4c Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Fri, 3 Aug 2018 13:53:57 -0700 Subject: [PATCH] Simplified earthtest --- examples/cpp/earthtest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/cpp/earthtest.cpp b/examples/cpp/earthtest.cpp index ec218ef..df51df9 100644 --- a/examples/cpp/earthtest.cpp +++ b/examples/cpp/earthtest.cpp @@ -31,7 +31,9 @@ int main(int argc, char **argv) { uint64_t nwid = 0x8056c2e21c000001; - zts_startjoin(path.c_str(), nwid); - printf("%llx", (unsigned long long)zts_get_node_id()); + zts_startjoin(".", nwid); + fprintf(stderr, "%llx", (unsigned long long)zts_get_node_id()); + zts_leave(nwid); + zts_stop(); return 0; } \ No newline at end of file