diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-03-14 13:14:29 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 13:50:04 +0800 |
commit | f7f54422e9f5ae177a6732e28c32cf7d73cfb1aa (patch) | |
tree | 8953c3600ab40980175a4a45c7a11c2dd57e8b13 /dex/app.go | |
parent | dabcfb97277f8a1b4dc1daa88a964a2e6b2c93b5 (diff) | |
download | dexon-f7f54422e9f5ae177a6732e28c32cf7d73cfb1aa.tar dexon-f7f54422e9f5ae177a6732e28c32cf7d73cfb1aa.tar.gz dexon-f7f54422e9f5ae177a6732e28c32cf7d73cfb1aa.tar.bz2 dexon-f7f54422e9f5ae177a6732e28c32cf7d73cfb1aa.tar.lz dexon-f7f54422e9f5ae177a6732e28c32cf7d73cfb1aa.tar.xz dexon-f7f54422e9f5ae177a6732e28c32cf7d73cfb1aa.tar.zst dexon-f7f54422e9f5ae177a6732e28c32cf7d73cfb1aa.zip |
core: vm: implement transfer node ownership (#255)
Diffstat (limited to 'dex/app.go')
-rw-r--r-- | dex/app.go | 3 |
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{ |