From 084bfaffcf2503d00bc06ab83802efbd1e223eb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Wo=CC=81jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Mon, 25 Nov 2024 19:38:39 +0100 Subject: [PATCH] Genesis blocks with timestamp 0 --- nano/node/json_handler.cpp | 2 +- nano/secure/common.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nano/node/json_handler.cpp b/nano/node/json_handler.cpp index 91dca52cd4..e87a3d74c7 100644 --- a/nano/node/json_handler.cpp +++ b/nano/node/json_handler.cpp @@ -4548,7 +4548,7 @@ void nano::json_handler::wallet_frontiers () void nano::json_handler::wallet_history () { - uint64_t modified_since (1); + uint64_t modified_since (0); boost::optional modified_since_text (request.get_optional ("modified_since")); if (modified_since_text.is_initialized ()) { diff --git a/nano/secure/common.cpp b/nano/secure/common.cpp index 6b40c90b2f..5948826225 100644 --- a/nano/secure/common.cpp +++ b/nano/secure/common.cpp @@ -143,7 +143,7 @@ nano::ledger_constants::ledger_constants (nano::work_thresholds & work, nano::ne /* successor (block_hash) */ nano::block_hash{ 0 }, /* balance (amount) */ nano::amount{ std::numeric_limits::max () }, /* height */ uint64_t{ 1 }, - /* local_timestamp */ nano::seconds_since_epoch (), + /* local_timestamp */ 0, /* epoch */ nano::epoch::epoch_0, /* is_send */ false, /* is_receive */ false, @@ -155,7 +155,7 @@ nano::ledger_constants::ledger_constants (nano::work_thresholds & work, nano::ne /* successor (block_hash) */ nano::block_hash{ 0 }, /* balance (amount) */ nano::amount{ std::numeric_limits::max () }, /* height */ uint64_t{ 1 }, - /* local_timestamp */ nano::seconds_since_epoch (), + /* local_timestamp */ 0, /* epoch */ nano::epoch::epoch_0, /* is_send */ false, /* is_receive */ false, @@ -167,7 +167,7 @@ nano::ledger_constants::ledger_constants (nano::work_thresholds & work, nano::ne /* successor (block_hash) */ nano::block_hash{ 0 }, /* balance (amount) */ nano::amount{ std::numeric_limits::max () }, /* height */ uint64_t{ 1 }, - /* local_timestamp */ nano::seconds_since_epoch (), + /* local_timestamp */ 0, /* epoch */ nano::epoch::epoch_0, /* is_send */ false, /* is_receive */ false, @@ -179,7 +179,7 @@ nano::ledger_constants::ledger_constants (nano::work_thresholds & work, nano::ne /* successor (block_hash) */ nano::block_hash{ 0 }, /* balance (amount) */ nano::amount{ std::numeric_limits::max () }, /* height */ uint64_t{ 1 }, - /* local_timestamp */ nano::seconds_since_epoch (), + /* local_timestamp */ 0, /* epoch */ nano::epoch::epoch_0, /* is_send */ false, /* is_receive */ false,