blockchain.transaction.broadcast implementation #80

Merged
moodyjon merged 9 commits from blockchain_tx_rpc2 into master 2022-12-16 20:54:20 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 0c79e6003a - Show all commits

View file

@ -210,7 +210,7 @@ func ParseArgs(searchRequest *pb.SearchRequest) *Args {
searchCmd := parser.NewCommand("search", "claim search")
dbCmd := parser.NewCommand("db", "db testing")
defaultDaemonURL := "localhost:9245"
defaultDaemonURL := "http://localhost:9245"
if url, ok := environment["DAEMON_URL"]; ok {
defaultDaemonURL = url
}

View file

@ -257,7 +257,7 @@ func MakeHubServer(grp *stop.Group, args *Args) *Server {
}
var lbcdClient *lbcd.Client = nil
if args.DaemonURL != nil {
if args.DaemonURL != nil && args.DaemonURL.Host != "" {
var rpcCertificate []byte
if args.DaemonCAPath != "" {
rpcCertificate, err = ioutil.ReadFile(args.DaemonCAPath)