@@ -228,7 +228,7 @@ func (handlers *Handlers) getTxInfoJSON(txInfo *accounts.TransactionData, detail
228
228
return txInfoJSON
229
229
}
230
230
231
- func (handlers * Handlers ) getAccountTransactions (_ * http.Request ) (interface {}, error ) {
231
+ func (handlers * Handlers ) getAccountTransactions (* http.Request ) (interface {}, error ) {
232
232
var result struct {
233
233
Success bool `json:"success"`
234
234
Transactions []Transaction `json:"list"`
@@ -265,7 +265,7 @@ func (handlers *Handlers) getAccountTransaction(r *http.Request) (interface{}, e
265
265
return nil , nil
266
266
}
267
267
268
- func (handlers * Handlers ) postExportTransactions (_ * http.Request ) (interface {}, error ) {
268
+ func (handlers * Handlers ) postExportTransactions (* http.Request ) (interface {}, error ) {
269
269
type result struct {
270
270
Success bool `json:"success"`
271
271
ErrorMessage string `json:"errorMessage"`
@@ -310,11 +310,11 @@ func (handlers *Handlers) postExportTransactions(_ *http.Request) (interface{},
310
310
return result {Success : true }, nil
311
311
}
312
312
313
- func (handlers * Handlers ) getAccountInfo (_ * http.Request ) (interface {}, error ) {
313
+ func (handlers * Handlers ) getAccountInfo (* http.Request ) (interface {}, error ) {
314
314
return handlers .account .Info (), nil
315
315
}
316
316
317
- func (handlers * Handlers ) getUTXOs (_ * http.Request ) (interface {}, error ) {
317
+ func (handlers * Handlers ) getUTXOs (* http.Request ) (interface {}, error ) {
318
318
result := []map [string ]interface {}{}
319
319
320
320
t , ok := handlers .account .(* btc.Account )
@@ -339,7 +339,7 @@ func (handlers *Handlers) getUTXOs(_ *http.Request) (interface{}, error) {
339
339
return result , nil
340
340
}
341
341
342
- func (handlers * Handlers ) getAccountBalance (_ * http.Request ) (interface {}, error ) {
342
+ func (handlers * Handlers ) getAccountBalance (* http.Request ) (interface {}, error ) {
343
343
balance , err := handlers .account .Balance ()
344
344
if err != nil {
345
345
return nil , err
@@ -440,7 +440,7 @@ func (handlers *Handlers) postAccountTxProposal(r *http.Request) (interface{}, e
440
440
}, nil
441
441
}
442
442
443
- func (handlers * Handlers ) getAccountFeeTargets (_ * http.Request ) (interface {}, error ) {
443
+ func (handlers * Handlers ) getAccountFeeTargets (* http.Request ) (interface {}, error ) {
444
444
type jsonFeeTarget struct {
445
445
Code accounts.FeeTargetCode `json:"code"`
446
446
FeeRateInfo string `json:"feeRateInfo"`
@@ -460,7 +460,7 @@ func (handlers *Handlers) getAccountFeeTargets(_ *http.Request) (interface{}, er
460
460
}, nil
461
461
}
462
462
463
- func (handlers * Handlers ) postInit (_ * http.Request ) (interface {}, error ) {
463
+ func (handlers * Handlers ) postInit (* http.Request ) (interface {}, error ) {
464
464
if handlers .account == nil {
465
465
return nil , errp .New ("/init called even though account was not added yet" )
466
466
}
@@ -479,7 +479,7 @@ type statusResponse struct {
479
479
FatalError bool `json:"fatalError"`
480
480
}
481
481
482
- func (handlers * Handlers ) getAccountStatus (_ * http.Request ) (interface {}, error ) {
482
+ func (handlers * Handlers ) getAccountStatus (* http.Request ) (interface {}, error ) {
483
483
if handlers .account == nil {
484
484
return statusResponse {Disabled : true }, nil
485
485
}
@@ -496,7 +496,7 @@ func (handlers *Handlers) getAccountStatus(_ *http.Request) (interface{}, error)
496
496
}, nil
497
497
}
498
498
499
- func (handlers * Handlers ) getReceiveAddresses (_ * http.Request ) (interface {}, error ) {
499
+ func (handlers * Handlers ) getReceiveAddresses (* http.Request ) (interface {}, error ) {
500
500
501
501
type jsonAddress struct {
502
502
Address string `json:"address"`
0 commit comments