difficulty and gasLimit could be empty in celo (#300)

This commit is contained in:
a10zn8
2023-09-15 18:47:56 +04:00
committed by GitHub
parent 8053431ada
commit bfdbce2743

View File

@@ -41,9 +41,11 @@ data class NewHeadMessage(
@get:JsonSerialize(using = TimestampSerializer::class)
val timestamp: Instant,
@get:JsonSerialize(using = NumberAsHexSerializer::class)
val difficulty: BigInteger,
@get:JsonInclude(JsonInclude.Include.NON_NULL)
val difficulty: BigInteger?,
@get:JsonSerialize(using = NumberAsHexSerializer::class)
val gasLimit: Long,
@get:JsonInclude(JsonInclude.Include.NON_NULL)
val gasLimit: Long?,
@get:JsonSerialize(using = NumberAsHexSerializer::class)
val gasUsed: Long,
@get:JsonSerialize(using = HexDataSerializer::class)