Skip to content

Commit 7c35458

Browse files
committed
fix non nullable block field difficulty and total difficulty
1 parent 385f65b commit 7c35458

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ metals.sbt
88
.idea/*
99
graphsense-spark.jar
1010
test_ref
11+
.vscode/

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

6+
## [24.11.1] 2024-12-06
7+
### Fixed
8+
- block difficulty and total difficulty can now be null
9+
610
## [24.11.0] 2024-11-14
711
### Changed
812
- Upgrade to Spark 3.5.3

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
RELEASE := 'v24.11.0'
1+
RELEASE := 'v24.11.1'
22
# RELEASESEM := 'v1.6.2'
33

44
all: format lint build
5-
5+
66
# -v graphsense-spark-temp-volume:/tmp/spark:z
77
RUNTRANSFORM=sh -c '\
88
docker run --rm \

src/main/scala/org/graphsense/account/Model.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ case class Block(
134134
stateRoot: Array[Byte],
135135
receiptsRoot: Array[Byte],
136136
miner: Array[Byte],
137-
difficulty: BigInt,
138-
totalDifficulty: BigInt,
137+
difficulty: Option[BigInt],
138+
totalDifficulty: Option[BigInt],
139139
size: Int,
140140
extraData: Array[Byte],
141141
gasLimit: Int,

0 commit comments

Comments
 (0)