diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-12 18:39:34 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | ca00b1770150b1d0945c4bf1ecce6ffbc4622fe2 (patch) | |
tree | f505d7e4ccaa5af9abcd004e1ee57c1a77639fa2 /core | |
parent | 5e903d50fc81c5a9ac40546baee3559cce3d01df (diff) | |
download | dexon-ca00b1770150b1d0945c4bf1ecce6ffbc4622fe2.tar.gz dexon-ca00b1770150b1d0945c4bf1ecce6ffbc4622fe2.tar.zst dexon-ca00b1770150b1d0945c4bf1ecce6ffbc4622fe2.zip |
core: vm: allow other people to stake for a node
Diffstat (limited to 'core')
-rw-r--r-- | core/vm/governance.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/core/vm/governance.go b/core/vm/governance.go index fa9f578be..ef7c9d6eb 100644 --- a/core/vm/governance.go +++ b/core/vm/governance.go @@ -1424,12 +1424,6 @@ func (g *GovernanceContract) stake(publicKey []byte) ([]byte, error) { return nil, errExecutionReverted } - // Make sure the public key belongs to the caller. - if crypto.PubkeyToAddress(*pk) != caller { - g.penalize() - return nil, errExecutionReverted - } - offset = g.state.NodesLength() g.state.PushNode(&nodeInfo{ Owner: caller, |