Skip to content

Commit

Permalink
Merge pull request gcash#387 from simpleledgerinc/slp-index
Browse files Browse the repository at this point in the history
SLP indexer and gRPC server updates
  • Loading branch information
cpacia authored Mar 12, 2021
2 parents bf7d988 + e03a79f commit 6db9dce
Show file tree
Hide file tree
Showing 89 changed files with 24,667 additions and 1,592 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Binaries
bchd
bchctl
gw

# Databases
btcd.db
Expand Down Expand Up @@ -42,3 +43,8 @@ _testmain.go

node_modules/
bchrpc/pb-js/yarn.lock

# ./bchrpc/regtest related
.vscode
*.cert
*.key
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
language: go
go_import_path: github.com/gcash/bchd
go:
- "1.12.17"
- "1.13.15"
- "1.14.12"
- "1.15.5"

services:
- docker

sudo: false

cache:
Expand All @@ -26,6 +28,7 @@ install:
script:
- export PATH=$PATH:$HOME/gopath/bin
- ./goclean.sh
- sh -c 'cd ./bchrpc/regtest && ./test.sh'

after_script:
- if [ "$TRAVIS_GO_VERSION" = "1.15.5" ] && [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_TAG" != "" ]; then go get github.com/inconshreveable/mousetrap; fi
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ that communicates with your running bchd instance via the API.

## Requirements

[Go](http://golang.org) 1.12.17 or newer.
[Go](http://golang.org) 1.13.15 or newer.

## Install

Expand Down
8 changes: 8 additions & 0 deletions bchd.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@ func bchdMain(serverChan chan<- *server) error {

return nil
}
if cfg.DropSlpIndex {
if err := indexers.DropSlpIndex(db, interrupt); err != nil {
bchdLog.Errorf("%v", err)
return err
}

return nil
}

// Create server and start it.
server, err := newServer(cfg.Listeners, cfg.AgentBlacklist, cfg.AgentWhitelist, db, activeNetParams.Params,
Expand Down
Loading

0 comments on commit 6db9dce

Please sign in to comment.