• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: 提交

Golang implemented sidechain for Bytom


Commit MetaInfo

修订版c50145af0bddf1735f3cd423714a5991d86b892a (tree)
时间2020-03-24 12:10:32
作者shenao78 <shenao.78@163....>
Commitershenao78

Log Message

fix reward program

更改概述

差异

--- a/application/mov/mov_core.go
+++ b/application/mov/mov_core.go
@@ -505,6 +505,10 @@ func getRewardProgram(height uint64) (string, bool) {
505505 }
506506
507507 func validateRewardProgram(height uint64, program string) error {
508+ if program == "" {
509+ return nil
510+ }
511+
508512 rewardProgram, exact := getRewardProgram(height)
509513 if exact && rewardProgram != program {
510514 return errRewardProgramIsWrong
Show on old repository browser