Removed unnecessary stuff
This commit is contained in:
parent
b906462331
commit
df964abf9d
@ -10,7 +10,6 @@ import (
|
|||||||
"github.com/btcsuite/btcd/chaincfg"
|
"github.com/btcsuite/btcd/chaincfg"
|
||||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||||
"github.com/btcsuite/btcd/wire"
|
"github.com/btcsuite/btcd/wire"
|
||||||
"github.com/golang/glog"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -98,19 +97,12 @@ func (p *BGoldParser) ParseBlock(b []byte) (*bchain.Block, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if glog.V(1) {
|
|
||||||
off, _ := r.Seek(0, io.SeekCurrent)
|
|
||||||
glog.Infof("parseblock: skipped %d bytes", off)
|
|
||||||
}
|
|
||||||
|
|
||||||
w := wire.MsgBlock{}
|
w := wire.MsgBlock{}
|
||||||
err = decodeTransactions(r, 0, wire.WitnessEncoding, &w)
|
err = decodeTransactions(r, 0, wire.WitnessEncoding, &w)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
glog.V(1).Infof("parseblock: got %d transactions", len(w.Transactions))
|
|
||||||
|
|
||||||
txs := make([]bchain.Tx, len(w.Transactions))
|
txs := make([]bchain.Tx, len(w.Transactions))
|
||||||
for ti, t := range w.Transactions {
|
for ti, t := range w.Transactions {
|
||||||
txs[ti] = p.TxFromMsgTx(t, false)
|
txs[ti] = p.TxFromMsgTx(t, false)
|
||||||
|
|||||||
@ -9,6 +9,5 @@
|
|||||||
"subversion": "/Bitcoin Gold:0.15.0.2/",
|
"subversion": "/Bitcoin Gold:0.15.0.2/",
|
||||||
"mempoolWorkers": 8,
|
"mempoolWorkers": 8,
|
||||||
"mempoolSubWorkers": 2,
|
"mempoolSubWorkers": 2,
|
||||||
"blockAddressesToKeep": 300,
|
"blockAddressesToKeep": 300
|
||||||
"addressFormat": "legacy"
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user