From b9a66c64e17173f59c953c71265e77cd3f0055da Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 18 Jun 2020 10:37:20 +0300 Subject: [PATCH] block: drop paddings from structures It makes no sense at all storing them in a structure, they're just a part of encoding/decoding process. --- pkg/core/block/block_base.go | 3 --- pkg/core/block/header.go | 2 -- 2 files changed, 5 deletions(-) diff --git a/pkg/core/block/block_base.go b/pkg/core/block/block_base.go index 0a060d597..ff71af997 100644 --- a/pkg/core/block/block_base.go +++ b/pkg/core/block/block_base.go @@ -35,9 +35,6 @@ type Base struct { // Contract address of the next miner NextConsensus util.Uint160 - // Padding that is fixed to 1 - _ uint8 - // Script used to validate the block Script transaction.Witness diff --git a/pkg/core/block/header.go b/pkg/core/block/header.go index 9b2ad907c..820eef4fa 100644 --- a/pkg/core/block/header.go +++ b/pkg/core/block/header.go @@ -10,8 +10,6 @@ import ( type Header struct { // Base of the block. Base - // Padding that is fixed to 0. - _ uint8 } // DecodeBinary implements Serializable interface.