Skip to content

Commit

Permalink
Added script to generate blockchain config
Browse files Browse the repository at this point in the history
  • Loading branch information
jakm committed Aug 1, 2018
1 parent dbe7118 commit 6e5fab0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/templates/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func main() {
coin := os.Args[1]
config := loadConfig(coin)
generatePackageDefinitions(config)
fmt.Fprintf(os.Stderr, "Package files for %v generated to %v\n", coin, outputDir)
fmt.Printf("Package files for %v generated to %v\n", coin, outputDir)
}

func loadConfig(coin string) *Config {
Expand Down
6 changes: 6 additions & 0 deletions contrib/scripts/build-blockchaincfg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e
go run build/templates/generate.go $1 > /dev/null
mv build/pkg-defs/blockbook/blockchaincfg.json build
rm -rf build/pkg-defs
echo Generated build/blockchaincfg.json for $1

0 comments on commit 6e5fab0

Please sign in to comment.