From fbaaa4877a110a4ab14c590b120bd1e8519020e9 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Wed, 10 Jan 2024 14:46:19 -0600 Subject: [PATCH] Make fork height and rolled back records optionals --- pkg/types/block.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/types/block.go b/pkg/types/block.go index 43c08f2..4329cfa 100644 --- a/pkg/types/block.go +++ b/pkg/types/block.go @@ -118,8 +118,8 @@ type BlockEvent struct { TransactionBlock bool `json:"transaction_block"` KSize uint8 `json:"k_size"` HeaderHash Bytes32 `json:"header_hash"` - ForkHeight uint32 `json:"fork_height"` - RolledBackRecords uint64 `json:"rolled_back_records"` + ForkHeight mo.Option[uint32] `json:"fork_height"` + RolledBackRecords mo.Option[uint64] `json:"rolled_back_records"` Height uint32 `json:"height"` ValidationTime float64 `json:"validation_time"` PreValidationTime float64 `json:"pre_validation_time"`