aboutsummaryrefslogtreecommitdiffstats
path: root/dex/app.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-03-14 13:14:29 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:22 +0800
commit6f3f370b317c57125f20237b4e3b7c05f888cc1c (patch)
treee693c4cc5492a61579f1b78f65ac4aa80146fe88 /dex/app.go
parent48066385fe960936758728be34a1d7ae6e9e95a2 (diff)
downloadgo-tangerine-6f3f370b317c57125f20237b4e3b7c05f888cc1c.tar
go-tangerine-6f3f370b317c57125f20237b4e3b7c05f888cc1c.tar.gz
go-tangerine-6f3f370b317c57125f20237b4e3b7c05f888cc1c.tar.bz2
go-tangerine-6f3f370b317c57125f20237b4e3b7c05f888cc1c.tar.lz
go-tangerine-6f3f370b317c57125f20237b4e3b7c05f888cc1c.tar.xz
go-tangerine-6f3f370b317c57125f20237b4e3b7c05f888cc1c.tar.zst
go-tangerine-6f3f370b317c57125f20237b4e3b7c05f888cc1c.zip
core: vm: implement transfer node ownership (#255)
Diffstat (limited to 'dex/app.go')
-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{