OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
delete first tx vote amount restrict (#301)
[bytom/vapor.git]
/
protocol
/
validation
/
tx.go
diff --git
a/protocol/validation/tx.go
b/protocol/validation/tx.go
index
d360854
..
bd493c5
100644
(file)
--- a/
protocol/validation/tx.go
+++ b/
protocol/validation/tx.go
@@
-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