Skip to content

Commit

Permalink
fix: fix claim-mismatch on v.1x
Browse files Browse the repository at this point in the history
  • Loading branch information
renan061 committed Jun 15, 2024
1 parent cd2f451 commit 9f50e8c
Show file tree
Hide file tree
Showing 10 changed files with 782 additions and 613 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Added

### Changed

- Changed the dispatcher to close epochs based on block numbers instead of block timestamps.
- Changed `CARTESI_EPOCH_DURATION` default value to 5760 (1 day worth of blocks, in average).

### Removed

## [1.4.0] 2024-04-09

### Added
Expand Down
4 changes: 2 additions & 2 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,12 @@ for more information.

## `CARTESI_EPOCH_DURATION`

Duration of a rollups epoch in seconds.
Duration of a rollups epoch in blocks.

At the end of each epoch, the node will send claims to the blockchain.

* **Type:** `Duration`
* **Default:** `"86400"`
* **Default:** `"5760"`

## `CARTESI_SNAPSHOT_DIR`

Expand Down
4 changes: 2 additions & 2 deletions internal/node/config/generate/Config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ the snapshot matches the hash in the Application contract."""
#

[rollups.CARTESI_EPOCH_DURATION]
default = "86400" # 1 day in seconds
default = "5760" # 1 day (average) in blocks
go-type = "Duration"
description = """
Duration of a rollups epoch in seconds.
Duration of a rollups epoch in blocks.
At the end of each epoch, the node will send claims to the blockchain."""

Expand Down
2 changes: 1 addition & 1 deletion internal/node/config/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9f50e8c

Please sign in to comment.