Skip to content

Commit

Permalink
small change to marshal func
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanschalm committed May 20, 2017
1 parent c41b527 commit 843708c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions blockchain/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ type BlockHeader struct {
func (bh *BlockHeader) Marshal() []byte {
buf := make([]byte, 4, BlockHeaderLen)
binary.LittleEndian.PutUint32(buf, bh.BlockNumber)
for _, b := range bh.LastBlock {
buf = append(buf, b)
}
buf = append(buf, bh.LastBlock.Marshal()...)
buf = append(buf, bh.Miner.Marshal()...)
return buf
}
Expand Down

0 comments on commit 843708c

Please sign in to comment.