From 0c0e4e0b32148900c1e17286bc6e2477b68ad315 Mon Sep 17 00:00:00 2001 From: woodser Date: Sun, 11 Aug 2019 06:55:39 -0400 Subject: [PATCH] ready to implement wait for next block --- test/sample_code.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/sample_code.cpp b/test/sample_code.cpp index 7eb5cb6..297ad7d 100644 --- a/test/sample_code.cpp +++ b/test/sample_code.cpp @@ -100,7 +100,8 @@ int main(int argc, const char* argv[]) { bool ignore_battery = false; wallet_restored->start_mining(num_threads, is_background, ignore_battery); -// // wait for the next block to be added to the chain + // wait for the next block to be added to the chain +// uint64_t next_height = wallet_random->wait_for_next_block(); // MoneroBlockHeader nextBlockHeader = daemon.getNextBlockHeader(); // long nextNumTxs = nextBlockHeader.getNumTxs();