func (s *Store) SaveBlock(block *types.Block, ts *bc.TransactionStatus) error {
startTime := time.Now()
- binaryBlockHeader, err := block.MarshalTextForBlockHeadr()
+ binaryBlockHeader, err := block.MarshalTextForBlockHeader()
if err != nil {
return errors.Wrap(err, "Marshal block header")
}
return nil
}
-// MarshalTextForBlockHeadr fulfills the json.Marshaler interface.
-func (b *Block) MarshalTextForBlockHeadr() ([]byte, error) {
+// MarshalTextForBlockHeader fulfills the json.Marshaler interface.
+func (b *Block) MarshalTextForBlockHeader() ([]byte, error) {
buf := bufpool.Get()
defer bufpool.Put(buf)