archethic-foundation / archethic-foundation/archethic-node

Use local Date reference to "now"

Open
#220 2 comments 0 reactions 0 assignees View on GitHub
beacon chain feature
Dominant language
Elixir
Stars
82
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Right now every time we want to use a date, at least a current date, we are using: `DateTime.utc_now()`.

While it's ok, it's still subject to fluctuations, so in order to leverage later a date synchronization with #223, we can use a local reference which will act as current time.

For now, it can be seen as a simple function returning: `DateTime.utc_now()` but with this abstraction we could evolve later with other logic we would like to implement.

Contributor guide

Open the contributing guide

Research direction

Search the Elixir codebase for uses of DateTime.utc_now() and identify the appropriate local date reference entry point. Read issue #223 for the planned synchronization context; done means current-date access uses the abstraction while initially retaining DateTime.utc_now() behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
blockchain
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.