From 90188c17cf3413f564108784acfd85e1e1231053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Lewandowski?= Date: Thu, 18 Jan 2024 12:57:41 +0100 Subject: [PATCH 1/2] feat(BUX-417): remove monitor from destination --- destination.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/destination.go b/destination.go index c9206ce..a270244 100644 --- a/destination.go +++ b/destination.go @@ -1,8 +1,6 @@ package buxmodels import ( - "time" - "github.com/BuxOrg/bux-models/common" ) @@ -27,6 +25,4 @@ type Destination struct { Address string `json:"address"` // DraftID is a destination's draft id. DraftID string `json:"draft_id"` - // Monitor is a time when destination was monitored. - Monitor time.Time `json:"monitor"` } From 8d216c5f442c04c3970393b6ca154f00c654b02c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Lewandowski?= Date: Thu, 18 Jan 2024 12:59:03 +0100 Subject: [PATCH 2/2] feat(BUX-498): remove block header --- block_header.go | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 block_header.go diff --git a/block_header.go b/block_header.go deleted file mode 100644 index b64cbdc..0000000 --- a/block_header.go +++ /dev/null @@ -1,32 +0,0 @@ -package buxmodels - -import ( - "time" - - "github.com/BuxOrg/bux-models/common" -) - -// BlockHeader is a model that represents a BSV block header. -type BlockHeader struct { - // Model is a common model that contains common fields for all models. - common.Model - - // ID is a block header id (hash). - ID string `json:"id"` - // Height is a block header height. - Height uint32 `json:"height"` - // Time is a block header time (timestamp). - Time uint32 `json:"time"` - // Nonce is a block header nonce. - Nonce uint32 `json:"nonce"` - // Version is a block header version. - Version uint32 `json:"version"` - // HashPreviousBlock is a block header hash of previous block. - HashPreviousBlock string `json:"hash_previous_block"` - // HashMerkleRoot is a block header hash merkle tree root. - HashMerkleRoot string `json:"hash_merkle_root"` - // Bits contains BSV block header bits no. - Bits string `json:"bits"` - // Synec is a time when block header was synced. - Synced time.Time `json:"synced"` -}