From 7ece1a9f76ba17eb07c078cce6f8ffe48bac7551 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Thu, 29 Nov 2018 10:20:00 +0800 Subject: Fix lint --- dex/app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dex/app.go') diff --git a/dex/app.go b/dex/app.go index 0e3f34f70..02e0a484f 100644 --- a/dex/app.go +++ b/dex/app.go @@ -39,7 +39,7 @@ const ( verifyBlockMaxRetries = 4 ) -// DexconApp implementes the DEXON consensus core application interface. +// DexconApp implements the DEXON consensus core application interface. type DexconApp struct { txPool *core.TxPool blockchain *core.BlockChain @@ -382,7 +382,7 @@ func (d *DexconApp) VerifyBlock(block *coreTypes.Block) coreTypes.BlockVerifySta log.Error("Failed to convert tx to message", "error", err) return coreTypes.VerifyInvalidBlock } - balance, _ := addressesBalance[msg.From()] + balance := addressesBalance[msg.From()] intrGas, err := core.IntrinsicGas(msg.Data(), msg.To() == nil, true) if err != nil { log.Error("Failed to calculate intrinsic gas", "err", err) -- cgit v1.2.3