func (msg *MsgBlock) SerializeSize() int {
	// Block header bytes + Serialized varint size for the number of
	// transactions.
	n := blockHeaderLen + VarIntSerializeSize(uint64(len(msg.Transactions)))

	if msg.Header.Version > 3 {
		n += 32 // acc checkpoint
	}

	for _, tx := range msg.Transactions {
		n += tx.SerializeSize()
	}

	return n
}
// SerializeSize returns the number of bytes it would take to serialize the
// block, factoring in any witness data within transaction.
SerializeSize returns the number of bytes it would take to serialize the
block, factoring in any witness data within transaction.
// SerializeSize returns the number of bytes it would take to serialize the // block factoring in any witness data within transaction .
func (msg *MsgBlock) SerializeSize() int {
	n := blockHeaderLen + VarIntSerializeSize(uint64(len(msg.Transactions)))
	if msg.Header.Version > 3 {
		n += 32 
	}
	for _, tx := range msg.Transactions {
		n += tx.SerializeSize()
	}
	return n
}
func ( msg * MsgBlock ) SerializeSize ( ) int { n := blockHeaderLen + VarIntSerializeSize ( uint64 ( len ( msg . Transactions ) ) ) if msg . Header . Version > 3 { n += 32 } for _ , tx := range msg . Transactions { n += tx . SerializeSize ( ) } return n }
SerializeSize returns the number of bytes it would take to serialize the
block, factoring in any witness data within transaction.
SerializeSize returns the number of bytes it would take to serialize the block factoring in any witness data within transaction .
// Block header bytes + Serialized varint size for the number of // transactions. // acc checkpoint