@@ -47,11 +47,11 @@ import (
47
47
"gopkg.in/urfave/cli.v1"
48
48
)
49
49
50
- // ExternalApiVersion -- see extapi_changelog.md
51
- const ExternalApiVersion = "2.0.0"
50
+ // ExternalAPIVersion -- see extapi_changelog.md
51
+ const ExternalAPIVersion = "2.0.0"
52
52
53
- // InternalApiVersion -- see intapi_changelog.md
54
- const InternalApiVersion = "2.0.0"
53
+ // InternalAPIVersion -- see intapi_changelog.md
54
+ const InternalAPIVersion = "2.0.0"
55
55
56
56
const legalWarning = `
57
57
WARNING!
@@ -398,10 +398,10 @@ func signer(c *cli.Context) error {
398
398
}
399
399
// register signer API with server
400
400
var (
401
- extapiUrl = "n/a"
402
- ipcApiUrl = "n/a"
401
+ extapiURL = "n/a"
402
+ ipcapiURL = "n/a"
403
403
)
404
- rpcApi := []rpc.API {
404
+ rpcAPI := []rpc.API {
405
405
{
406
406
Namespace : "account" ,
407
407
Public : true ,
@@ -415,12 +415,12 @@ func signer(c *cli.Context) error {
415
415
416
416
// start http server
417
417
httpEndpoint := fmt .Sprintf ("%s:%d" , c .String (utils .RPCListenAddrFlag .Name ), c .Int (rpcPortFlag .Name ))
418
- listener , _ , err := rpc .StartHTTPEndpoint (httpEndpoint , rpcApi , []string {"account" }, cors , vhosts )
418
+ listener , _ , err := rpc .StartHTTPEndpoint (httpEndpoint , rpcAPI , []string {"account" }, cors , vhosts )
419
419
if err != nil {
420
420
utils .Fatalf ("Could not start RPC api: %v" , err )
421
421
}
422
- extapiUrl = fmt .Sprintf ("http://%s" , httpEndpoint )
423
- log .Info ("HTTP endpoint opened" , "url" , extapiUrl )
422
+ extapiURL = fmt .Sprintf ("http://%s" , httpEndpoint )
423
+ log .Info ("HTTP endpoint opened" , "url" , extapiURL )
424
424
425
425
defer func () {
426
426
listener .Close ()
@@ -430,19 +430,19 @@ func signer(c *cli.Context) error {
430
430
}
431
431
if ! c .Bool (utils .IPCDisabledFlag .Name ) {
432
432
if c .IsSet (utils .IPCPathFlag .Name ) {
433
- ipcApiUrl = c .String (utils .IPCPathFlag .Name )
433
+ ipcapiURL = c .String (utils .IPCPathFlag .Name )
434
434
} else {
435
- ipcApiUrl = filepath .Join (configDir , "clef.ipc" )
435
+ ipcapiURL = filepath .Join (configDir , "clef.ipc" )
436
436
}
437
437
438
- listener , _ , err := rpc .StartIPCEndpoint (ipcApiUrl , rpcApi )
438
+ listener , _ , err := rpc .StartIPCEndpoint (ipcapiURL , rpcAPI )
439
439
if err != nil {
440
440
utils .Fatalf ("Could not start IPC api: %v" , err )
441
441
}
442
- log .Info ("IPC endpoint opened" , "url" , ipcApiUrl )
442
+ log .Info ("IPC endpoint opened" , "url" , ipcapiURL )
443
443
defer func () {
444
444
listener .Close ()
445
- log .Info ("IPC endpoint closed" , "url" , ipcApiUrl )
445
+ log .Info ("IPC endpoint closed" , "url" , ipcapiURL )
446
446
}()
447
447
448
448
}
@@ -453,10 +453,10 @@ func signer(c *cli.Context) error {
453
453
}
454
454
ui .OnSignerStartup (core.StartupInfo {
455
455
Info : map [string ]interface {}{
456
- "extapi_version" : ExternalApiVersion ,
457
- "intapi_version" : InternalApiVersion ,
458
- "extapi_http" : extapiUrl ,
459
- "extapi_ipc" : ipcApiUrl ,
456
+ "extapi_version" : ExternalAPIVersion ,
457
+ "intapi_version" : InternalAPIVersion ,
458
+ "extapi_http" : extapiURL ,
459
+ "extapi_ipc" : ipcapiURL ,
460
460
},
461
461
})
462
462
0 commit comments