OSDN Git Service

delete first tx vote amount restrict (#301)
[bytom/vapor.git] / protocol / validation / tx.go
index d360854..bd493c5 100644 (file)
@@ -245,6 +245,10 @@ func checkValid(vs *validationState, e bc.Entry) (err error) {
                        return errors.Wrap(err, "checking vote output source")
                }
 
+               if e.Source.Value.Amount < consensus.ActiveNetParams.MinVoteOutputAmount {
+                       return ErrVoteOutputAmount
+               }
+
        case *bc.Retirement:
                vs2 := *vs
                vs2.sourcePos = 0