diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-19 14:35:20 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:23:39 +0800 |
commit | 9ec8fa02e86e992f8dc6a1f230b2e406178f24de (patch) | |
tree | 6de6de362852ddb41ad4fd9cb5ae5651dfbbb502 /core/vm | |
parent | 7d53965dce0013f8c75a3ae556f57b8a22a484e6 (diff) | |
download | go-tangerine-9ec8fa02e86e992f8dc6a1f230b2e406178f24de.tar go-tangerine-9ec8fa02e86e992f8dc6a1f230b2e406178f24de.tar.gz go-tangerine-9ec8fa02e86e992f8dc6a1f230b2e406178f24de.tar.bz2 go-tangerine-9ec8fa02e86e992f8dc6a1f230b2e406178f24de.tar.lz go-tangerine-9ec8fa02e86e992f8dc6a1f230b2e406178f24de.tar.xz go-tangerine-9ec8fa02e86e992f8dc6a1f230b2e406178f24de.tar.zst go-tangerine-9ec8fa02e86e992f8dc6a1f230b2e406178f24de.zip |
dex: fix public key parsing due to changes in consensus core
Diffstat (limited to 'core/vm')
-rw-r--r-- | core/vm/governance.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/vm/governance.go b/core/vm/governance.go index a720e31f5..2e07ba3eb 100644 --- a/core/vm/governance.go +++ b/core/vm/governance.go @@ -1316,7 +1316,10 @@ func (g *GovernanceContract) inDKGSet(nodeID coreTypes.NodeID) bool { ns := coreTypes.NewNodeSet() for _, x := range g.state.Nodes() { - mpk := ecdsa.NewPublicKeyFromByteSlice(x.PublicKey) + mpk, err := ecdsa.NewPublicKeyFromByteSlice(x.PublicKey) + if err != nil { + panic(err) + } ns.Add(coreTypes.NewNodeID(mpk)) } |