Skip to content

Commit

Permalink
update README && make circulation check optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggie1984 committed Jan 11, 2023
1 parent 3a946cf commit c3059c2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ page (Linux, Windows, MacOS). Extract the tarball, and launch it as:
```sh
./lss
```
There are some cmd handle which can be useful when setting up the setup the first time you can list them with
There are some cmd handles which can be useful when configuring the setup the first time. List them with

`./lss -h` or `./lss --help`

Expand Down
4 changes: 2 additions & 2 deletions bus/workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func runTheNumbers(b *Bus) error {
return nil
}

func (b *Bus) Worker(config *config.Configuration, skipCirculationCheck bool,
func (b *Bus) Worker(config *config.Configuration, circulationCheck bool,
forceImportDesc bool) {
importDone := make(chan bool)

Expand Down Expand Up @@ -252,7 +252,7 @@ func (b *Bus) Worker(config *config.Configuration, skipCirculationCheck bool,
return
}

if !skipCirculationCheck {
if circulationCheck {
b.IsPendingScan = true

if err := runTheNumbers(b); err != nil {
Expand Down
9 changes: 5 additions & 4 deletions cmd/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ import (
func init() {
rootCmd.PersistentFlags().String("port", "20000", "Port")
rootCmd.PersistentFlags().Bool("unload-wallet", false, "whether SatStack should unload wallet")
rootCmd.PersistentFlags().Bool("skip-circulation-check", false, "skip the circulation check")
rootCmd.PersistentFlags().Bool("force-importdescriptors", false, "this will force importing descriptors although the wallet does already exist")
rootCmd.PersistentFlags().Bool("circulation-check", false, "performs inflation checks against the connected full node")
rootCmd.PersistentFlags().Bool("force-importdescriptors", false, "this will force importing descriptors although the wallet does already exist "+
"which will force the wallet to rescan from the brithday date")

}

Expand All @@ -33,10 +34,10 @@ var rootCmd = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) {
port, _ := cmd.Flags().GetString("port")
unloadWallet, _ := cmd.Flags().GetBool("unload-wallet")
skipCirculationCheck, _ := cmd.Flags().GetBool("skip-circulation-check")
circulationCheck, _ := cmd.Flags().GetBool("circulation-check")
forceImportDesc, _ := cmd.Flags().GetBool("force-importdescriptors")

s := startup(unloadWallet, skipCirculationCheck, forceImportDesc)
s := startup(unloadWallet, circulationCheck, forceImportDesc)
if s == nil {
return
}
Expand Down

0 comments on commit c3059c2

Please sign in to comment.