Fix travis_go_checker.sh

pull/3693/head
Alex Chen 4 years ago
parent 45b90e9b3b
commit ce41acda7e
  1. 3
      core/rawdb/accessors_offchain.go

@ -1,6 +1,7 @@
package rawdb package rawdb
import ( import (
"fmt"
"math/big" "math/big"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
@ -301,7 +302,7 @@ func ReadBlockCommitSig(db DatabaseReader, blockNum uint64) ([]byte, error) {
// this is only needed for the compatibility in the migration moment. // this is only needed for the compatibility in the migration moment.
data, err = db.Get(lastCommitsKey) data, err = db.Get(lastCommitsKey)
if err != nil { if err != nil {
return nil, errors.New("cannot read commit sig for block " + string(blockNum)) return nil, errors.New(fmt.Sprintf("cannot read commit sig for block: %d ", blockNum))
} }
} }
return data, nil return data, nil

Loading…
Cancel
Save