We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8076c81 commit c4098f8Copy full SHA for c4098f8
src/main/kotlin/io/emeraldpay/dshackle/data/BlockContainer.kt
@@ -48,7 +48,7 @@ class BlockContainer(
48
block.number,
49
BlockId.from(block),
50
block.parentHash?.let(BlockId.Companion::from),
51
- block.totalDifficulty,
+ block.totalDifficulty ?: BigInteger.ZERO,
52
block.timestamp,
53
hasTransactions,
54
raw,
src/main/kotlin/io/emeraldpay/dshackle/rpc/TrackEthereumTx.kt
@@ -187,7 +187,7 @@ class TrackEthereumTx(
187
}
188
189
fun setBlockDetails(tx: TxDetails, block: BlockJson<TransactionRefJson>): TxDetails {
190
- return if (block.number != null && block.totalDifficulty != null) {
+ return if (block.number != null) {
191
tx.withStatus(
192
blockTotalDifficulty = block.totalDifficulty,
193
blockTime = block.timestamp
0 commit comments