File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ void StopHTTPRPC();
23
23
/* * Start HTTP REST subsystem.
24
24
* Precondition; HTTP and RPC has been started.
25
25
*/
26
- bool StartREST ();
26
+ void StartREST ();
27
27
/* * Interrupt RPC REST subsystem.
28
28
*/
29
29
void InterruptREST ();
Original file line number Diff line number Diff line change @@ -736,8 +736,7 @@ static bool AppInitServers()
736
736
StartRPC ();
737
737
if (!StartHTTPRPC ())
738
738
return false ;
739
- if (gArgs .GetBoolArg (" -rest" , DEFAULT_REST_ENABLE) && !StartREST ())
740
- return false ;
739
+ if (gArgs .GetBoolArg (" -rest" , DEFAULT_REST_ENABLE)) StartREST ();
741
740
StartHTTPServer ();
742
741
return true ;
743
742
}
Original file line number Diff line number Diff line change @@ -591,11 +591,10 @@ static const struct {
591
591
{" /rest/getutxos" , rest_getutxos},
592
592
};
593
593
594
- bool StartREST ()
594
+ void StartREST ()
595
595
{
596
596
for (unsigned int i = 0 ; i < ARRAYLEN (uri_prefixes); i++)
597
597
RegisterHTTPHandler (uri_prefixes[i].prefix , false , uri_prefixes[i].handler );
598
- return true ;
599
598
}
600
599
601
600
void InterruptREST ()
You can’t perform that action at this time.
0 commit comments