Skip to content

Commit

Permalink
core: unexport writeHeaders
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Dec 4, 2020
1 parent 4638d7f commit 8699099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/headerchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ type headerWriteResult struct {
// without the real blocks. Hence, writing headers directly should only be done
// in two scenarios: pure-header mode of operation (light clients), or properly
// separated header/block phases (non-archive clients).
func (hc *HeaderChain) WriteHeaders(headers []*types.Header, postWriteFn PostWriteCallback) (result *headerWriteResult, err error) {
func (hc *HeaderChain) writeHeaders(headers []*types.Header, postWriteFn PostWriteCallback) (result *headerWriteResult, err error) {
if len(headers) == 0 {
return &headerWriteResult{}, nil
}
Expand Down Expand Up @@ -358,7 +358,7 @@ func (hc *HeaderChain) InsertHeaderChain(chain []*types.Header, postWriteFn Post
if hc.procInterrupt() {
return 0, errors.New("aborted")
}
res, err := hc.WriteHeaders(chain, postWriteFn)
res, err := hc.writeHeaders(chain, postWriteFn)
// Report some public statistics so the user has a clue what's going on
context := []interface{}{
"count", res.imported,
Expand Down

0 comments on commit 8699099

Please sign in to comment.