diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-12 18:39:34 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:49 +0800 |
commit | 080518356b7b8a5f64a1ab529ed38911296a137e (patch) | |
tree | 63586b8647a2653de14b37177f72e62641b96727 | |
parent | e21a3a274283d3a145f0750fef0b427eaa988642 (diff) | |
download | dexon-080518356b7b8a5f64a1ab529ed38911296a137e.tar dexon-080518356b7b8a5f64a1ab529ed38911296a137e.tar.gz dexon-080518356b7b8a5f64a1ab529ed38911296a137e.tar.bz2 dexon-080518356b7b8a5f64a1ab529ed38911296a137e.tar.lz dexon-080518356b7b8a5f64a1ab529ed38911296a137e.tar.xz dexon-080518356b7b8a5f64a1ab529ed38911296a137e.tar.zst dexon-080518356b7b8a5f64a1ab529ed38911296a137e.zip |
core: vm: allow other people to stake for a node
-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, |