aboutsummaryrefslogtreecommitdiffstats
path: root/dex/app.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-29 10:20:00 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:54 +0800
commitd09c4f37a430b03e42d0ae3324907f040adc1449 (patch)
tree05f27af84647a2d3296a8d4fec578c11c5a1f87a /dex/app.go
parent25a0e3a6b67cf646611153599e5b9cde2f2e8435 (diff)
downloaddexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar
dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.gz
dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.bz2
dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.lz
dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.xz
dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.zst
dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.zip
Fix lint
Diffstat (limited to 'dex/app.go')
-rw-r--r--dex/app.go4
1 files changed, 2 insertions, 2 deletions
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)