block: rename BlockBase to Base
This commit is contained in:
parent
63c56cca5c
commit
489b88afbb
14 changed files with 41 additions and 41 deletions
|
@ -8,7 +8,7 @@ import (
|
|||
|
||||
// MerkleBlock represents a merkle block packet payload.
|
||||
type MerkleBlock struct {
|
||||
*block.BlockBase
|
||||
*block.Base
|
||||
TxCount int
|
||||
Hashes []util.Uint256
|
||||
Flags []byte
|
||||
|
@ -16,8 +16,8 @@ type MerkleBlock struct {
|
|||
|
||||
// DecodeBinary implements Serializable interface.
|
||||
func (m *MerkleBlock) DecodeBinary(br *io.BinReader) {
|
||||
m.BlockBase = &block.BlockBase{}
|
||||
m.BlockBase.DecodeBinary(br)
|
||||
m.Base = &block.Base{}
|
||||
m.Base.DecodeBinary(br)
|
||||
|
||||
m.TxCount = int(br.ReadVarUint())
|
||||
br.ReadArray(&m.Hashes)
|
||||
|
@ -26,8 +26,8 @@ func (m *MerkleBlock) DecodeBinary(br *io.BinReader) {
|
|||
|
||||
// EncodeBinary implements Serializable interface.
|
||||
func (m *MerkleBlock) EncodeBinary(bw *io.BinWriter) {
|
||||
m.BlockBase = &block.BlockBase{}
|
||||
m.BlockBase.EncodeBinary(bw)
|
||||
m.Base = &block.Base{}
|
||||
m.Base.EncodeBinary(bw)
|
||||
|
||||
bw.WriteVarUint(uint64(m.TxCount))
|
||||
bw.WriteArray(m.Hashes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue