Skip to content

Commit

Permalink
BTFS-2082:Wallet UI BE: Regularly check pending tx feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin committed Jun 22, 2020
1 parent 502350f commit ce407c1
Show file tree
Hide file tree
Showing 8 changed files with 381 additions and 636 deletions.
6 changes: 5 additions & 1 deletion cmd/btfs/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"errors"
_ "expvar"
"fmt"
"github.com/TRON-US/go-btfs/core/commands/storage/upload/helper"
"net"
"net/http"
_ "net/http/pprof"
Expand Down Expand Up @@ -271,7 +272,7 @@ func daemonFunc(req *cmds.Request, re cmds.ResponseEmitter, env cmds.Environment
}
}

if err = doInit(os.Stdout, cfg, false, nBitsForKeypairDefault, profiles, conf,
if err = doInit(os.Stdout, cfg, false, utilmain.NBitsForKeypairDefault, []string{profiles}, conf,
keyTypeDefault, "", "", false); err != nil {
return err
}
Expand Down Expand Up @@ -532,6 +533,9 @@ func daemonFunc(req *cmds.Request, re cmds.ResponseEmitter, env cmds.Environment
spin.Analytics(cctx.ConfigRoot, node, version.CurrentVersionNumber, hValue)
spin.Hosts(node, env)
spin.Contracts(node, req, env, nodepb.ContractStat_HOST.String())
if params, err := helper.ExtractContextParams(req, env); err == nil {
spin.NewWalletWrap(params).UpdateStatus()
}

// Give the user some immediate feedback when they hit C-c
go func() {
Expand Down
Loading

0 comments on commit ce407c1

Please sign in to comment.