aboutsummaryrefslogtreecommitdiffstats
path: root/dex
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-03-14 13:14:29 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:58 +0800
commitb11d655eb5dc4c7997f1bf24a0b6800a5826ce97 (patch)
tree2c6af61a776e00fabb3a73afbb988e2107f99e43 /dex
parent96340d7e6d81298780888bef417982586ff81466 (diff)
downloaddexon-b11d655eb5dc4c7997f1bf24a0b6800a5826ce97.tar.gz
dexon-b11d655eb5dc4c7997f1bf24a0b6800a5826ce97.tar.zst
dexon-b11d655eb5dc4c7997f1bf24a0b6800a5826ce97.zip
core: vm: implement transfer node ownership (#255)
Diffstat (limited to 'dex')
-rw-r--r--dex/app.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/dex/app.go b/dex/app.go
index 90ffd3d3c..8caa84837 100644
--- a/dex/app.go
+++ b/dex/app.go
@@ -430,10 +430,11 @@ func (d *DexconApp) BlockDelivered(
var owner common.Address
if !block.IsEmpty() {
gs := d.gov.GetStateForConfigAtRound(block.Position.Round)
- owner, err = gs.GetNodeOwnerByID(block.ProposerID)
+ node, err := gs.GetNodeByID(block.ProposerID)
if err != nil {
panic(err)
}
+ owner = node.Owner
}
newBlock := types.NewBlock(&types.Header{