Skip to content

Commit

Permalink
fix non nullable block field difficulty and total difficulty
Browse files Browse the repository at this point in the history
  • Loading branch information
soad003 committed Dec 6, 2024
1 parent 385f65b commit 7c35458
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ metals.sbt
.idea/*
graphsense-spark.jar
test_ref
.vscode/
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ 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/).

## [24.11.1] 2024-12-06
### Fixed
- block difficulty and total difficulty can now be null

## [24.11.0] 2024-11-14
### Changed
- Upgrade to Spark 3.5.3
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
RELEASE := 'v24.11.0'
RELEASE := 'v24.11.1'
# RELEASESEM := 'v1.6.2'

all: format lint build

# -v graphsense-spark-temp-volume:/tmp/spark:z
RUNTRANSFORM=sh -c '\
docker run --rm \
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/org/graphsense/account/Model.scala
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ case class Block(
stateRoot: Array[Byte],
receiptsRoot: Array[Byte],
miner: Array[Byte],
difficulty: BigInt,
totalDifficulty: BigInt,
difficulty: Option[BigInt],
totalDifficulty: Option[BigInt],
size: Int,
extraData: Array[Byte],
gasLimit: Int,
Expand Down

0 comments on commit 7c35458

Please sign in to comment.