add waitgroups to ingestBlock
seems to go a little faster but not much. making ingest tx take a slice of txs would be faster probably. but it seems network i/o is the limiting factor so maybe it's OK
This commit is contained in:
1 parent
4535b965cd
commit
e2dd892a4f
6 files changed
+26
-17
No files matched your search
@@ -25,7 +25,7 @@ testing. It can send and receive coins.
|
||||
const (
|
||||
keyFileName = "testkey.hex"
|
||||
headerFileName = "headers.bin"
|
||||
dbFileName = "utxo.db"
|
||||
dbFileName = "/dev/shm/utxo.db"
|
||||
// this is my local testnet node, replace it with your own close by.
|
||||
// Random internet testnet nodes usually work but sometimes don't, so
|
||||
// maybe I should test against different versions out there.
|
||||
@@ -51,7 +51,7 @@ func shell() {
|
||||
// setup spvCon
|
||||
|
||||
SCon, err = uspv.OpenSPV(
|
||||
SPVHostAdr, headerFileName, dbFileName, &Store, true, Params)
|
||||
SPVHostAdr, headerFileName, dbFileName, &Store, false, false, Params)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user