From df964abf9d96eb504c4555077a9e1e2efd243de3 Mon Sep 17 00:00:00 2001 From: Jakub Matys Date: Thu, 7 Jun 2018 14:09:24 +0200 Subject: [PATCH] Removed unnecessary stuff --- bchain/coins/btg/bgoldparser.go | 8 -------- configs/bgold.json | 3 +-- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/bchain/coins/btg/bgoldparser.go b/bchain/coins/btg/bgoldparser.go index efaacd24..4421848a 100644 --- a/bchain/coins/btg/bgoldparser.go +++ b/bchain/coins/btg/bgoldparser.go @@ -10,7 +10,6 @@ import ( "github.com/btcsuite/btcd/chaincfg" "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcd/wire" - "github.com/golang/glog" ) const ( @@ -98,19 +97,12 @@ func (p *BGoldParser) ParseBlock(b []byte) (*bchain.Block, error) { return nil, err } - if glog.V(1) { - off, _ := r.Seek(0, io.SeekCurrent) - glog.Infof("parseblock: skipped %d bytes", off) - } - w := wire.MsgBlock{} err = decodeTransactions(r, 0, wire.WitnessEncoding, &w) if err != nil { return nil, err } - glog.V(1).Infof("parseblock: got %d transactions", len(w.Transactions)) - txs := make([]bchain.Tx, len(w.Transactions)) for ti, t := range w.Transactions { txs[ti] = p.TxFromMsgTx(t, false) diff --git a/configs/bgold.json b/configs/bgold.json index 204fdae1..8627e5ae 100644 --- a/configs/bgold.json +++ b/configs/bgold.json @@ -9,6 +9,5 @@ "subversion": "/Bitcoin Gold:0.15.0.2/", "mempoolWorkers": 8, "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300, - "addressFormat": "legacy" + "blockAddressesToKeep": 300 }