Skip to content

Commit

Permalink
Genesis blocks with timestamp 0
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Nov 26, 2024
1 parent bdced6b commit 084bfaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nano/node/json_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string> modified_since_text (request.get_optional<std::string> ("modified_since"));
if (modified_since_text.is_initialized ())
{
Expand Down
8 changes: 4 additions & 4 deletions nano/secure/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<nano::uint128_t>::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,
Expand All @@ -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<nano::uint128_t>::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,
Expand All @@ -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<nano::uint128_t>::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,
Expand All @@ -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<nano::uint128_t>::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,
Expand Down

0 comments on commit 084bfaf

Please sign in to comment.