diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-12 18:39:34 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:23:38 +0800 |
commit | 62e6cbc31e48232f5f6e1b82f1ebd3810d5d9b47 (patch) | |
tree | 36a72a3238d9315a2b80bdf4e69d2774400d7755 | |
parent | 8e4340ed4be0cb8d5d2fe9f14d5f2b559cf3360c (diff) | |
download | go-tangerine-62e6cbc31e48232f5f6e1b82f1ebd3810d5d9b47.tar go-tangerine-62e6cbc31e48232f5f6e1b82f1ebd3810d5d9b47.tar.gz go-tangerine-62e6cbc31e48232f5f6e1b82f1ebd3810d5d9b47.tar.bz2 go-tangerine-62e6cbc31e48232f5f6e1b82f1ebd3810d5d9b47.tar.lz go-tangerine-62e6cbc31e48232f5f6e1b82f1ebd3810d5d9b47.tar.xz go-tangerine-62e6cbc31e48232f5f6e1b82f1ebd3810d5d9b47.tar.zst go-tangerine-62e6cbc31e48232f5f6e1b82f1ebd3810d5d9b47.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, |