Skip to content

Commit

Permalink
fix some bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gordon-sero committed Oct 21, 2019
1 parent b463f97 commit d0c1a03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sero/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,10 @@ func (s *Sero) StartMining(local bool) error {
if !ret {
lic_t := c_type.LICr{}
if bytes.Equal(lic.Proof[:32], lic_t.Proof[:32]) {
log.Error("Cannot start mining , miner license does not exists ", "", "")
log.Error("Cannot start mining , miner license does not exists, or coinBase is error", "", "")
return fmt.Errorf(" miner license does not exists")
} else {
log.Error("Cannot start mining ,invalid miner license", "", "")
log.Error("Cannot start mining ,invalid miner license, or coinBase is error", "", "")
return fmt.Errorf("invalid miner license: %v", common.Bytes2Hex(lic.Proof[:]))
}
}
Expand Down
2 changes: 1 addition & 1 deletion zero/stake/sharepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ func (self *StakeState) CheckVotes(block *types.Block, bc blockChain) error {
blockPosHash := parentblock.HashPos()
for _, vote := range header.ParentVotes {
ret := types.StakeHash(&blockPosHash, &parentPosHash, vote.IsPool)
if err := self.verifyVote(block.NumberU64(), vote, ret); err != nil {
if err := self.verifyVote(parentblock.NumberU64(), vote, ret); err != nil {
return err
}

Expand Down
2 changes: 1 addition & 1 deletion zero/txtool/flight/sli.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func GenTx(param *txtool.GTxParam) (gtx txtool.GTx, e error) {
var need_szk = true

if txtool.Ref_inst.Bc != nil {
if txtool.Ref_inst.Bc.GetCurrenHeader().Number.Uint64() < seroparam.SIP5() {
if txtool.Ref_inst.Bc.GetCurrenHeader().Number.Uint64()+1 < seroparam.SIP5() {
need_szk = false
} else {
param.Z = &need_szk
Expand Down

0 comments on commit d0c1a03

Please sign in to comment.