Removed unnecessary stuff

This commit is contained in:
Jakub Matys 2018-06-07 14:09:24 +02:00
parent b906462331
commit df964abf9d
2 changed files with 1 additions and 10 deletions

View File

@ -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)

View File

@ -9,6 +9,5 @@
"subversion": "/Bitcoin Gold:0.15.0.2/",
"mempoolWorkers": 8,
"mempoolSubWorkers": 2,
"blockAddressesToKeep": 300,
"addressFormat": "legacy"
"blockAddressesToKeep": 300
}