forked from TrueCloudLab/neoneo-go
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.
This commit is contained in:
parent
b6eef9d275
commit
b9a66c64e1
2 changed files with 0 additions and 5 deletions
|
@ -35,9 +35,6 @@ type Base struct {
|
||||||
// Contract address of the next miner
|
// Contract address of the next miner
|
||||||
NextConsensus util.Uint160
|
NextConsensus util.Uint160
|
||||||
|
|
||||||
// Padding that is fixed to 1
|
|
||||||
_ uint8
|
|
||||||
|
|
||||||
// Script used to validate the block
|
// Script used to validate the block
|
||||||
Script transaction.Witness
|
Script transaction.Witness
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,6 @@ import (
|
||||||
type Header struct {
|
type Header struct {
|
||||||
// Base of the block.
|
// Base of the block.
|
||||||
Base
|
Base
|
||||||
// Padding that is fixed to 0.
|
|
||||||
_ uint8
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// DecodeBinary implements Serializable interface.
|
// DecodeBinary implements Serializable interface.
|
||||||
|
|
Loading…
Reference in a new issue