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 17, 2024
1 parent cd2f451 commit 7174494
Show file tree
Hide file tree
Showing 10 changed files with 790 additions and 621 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.
- Renamed `CARTESI_EPOCH_DURATION` to `CARTESI_EPOCH_LENGTH`, and set its default value to 5760 (1 day worth of blocks, in average).

### Removed

## [1.4.0] 2024-04-09

### Added
Expand Down
8 changes: 4 additions & 4 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,14 @@ for more information.
* **Type:** `string`
* **Default:** `""`

## `CARTESI_EPOCH_DURATION`
## `CARTESI_EPOCH_LENGTH`

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

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

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

## `CARTESI_SNAPSHOT_DIR`

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

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

Expand Down
10 changes: 5 additions & 5 deletions 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 7174494

Please sign in to comment.