Skip to content

Conversation

@arepala-uml
Copy link
Contributor

@arepala-uml arepala-uml commented Jul 30, 2025

  1. Added forgeBlock() method to LedgerState for creating empty blocks.
  2. Created an empty block with required header parameters such as (previous hash from current chain tip,incremented block number & slot number) and marshal blocks to CBOR & logged the hex string.
  3. Schedule block forging at calculated block interval when dev mode is enabled.
  4. Add devMode field to LedgerStateConfig and updated node configuration to pass dev mode to ledger state.

Closes #809

…ode at calculated block interval

Signed-off-by: Akhil Repala <arepala@blinklabs.io>
@arepala-uml arepala-uml marked this pull request as ready for review July 30, 2025 05:47
@arepala-uml arepala-uml requested a review from a team as a code owner July 30, 2025 05:47
@arepala-uml arepala-uml requested review from agaffney and wolf31o2 July 30, 2025 05:48
…f block interval as well as changed the name devMode to forgeBlocks

Signed-off-by: Akhil Repala <arepala@blinklabs.io>
…e slot coefficient

Signed-off-by: Akhil Repala <arepala@blinklabs.io>
@arepala-uml arepala-uml requested a review from agaffney July 31, 2025 01:21
…t with TimeToSlot(time.Now())

Signed-off-by: Akhil Repala <arepala@blinklabs.io>
@arepala-uml arepala-uml requested a review from agaffney August 1, 2025 03:31
@agaffney agaffney merged commit ac669f8 into main Aug 1, 2025
10 checks passed
@agaffney agaffney deleted the forge_block branch August 1, 2025 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add initial block forge functionality

3 participants