[NOD-455] Make GetFeeEstimateHandler return err, not HandlerError (#485)

This commit is contained in:
Svarog 2019-11-24 10:43:51 +02:00 committed by stasatdaglabs
parent db6e9c773f
commit af39e96e3e
2 changed files with 4 additions and 2 deletions

View File

@ -2,12 +2,11 @@ package controllers
import (
"github.com/daglabs/btcd/apiserver/apimodels"
"github.com/daglabs/btcd/httpserverutils"
)
// GetFeeEstimatesHandler returns the fee estimates for different priorities
// for accepting a transaction in the DAG.
func GetFeeEstimatesHandler() (interface{}, *httpserverutils.HandlerError) {
func GetFeeEstimatesHandler() (interface{}, error) {
return &apimodels.FeeEstimateResponse{
HighPriority: 3,
NormalPriority: 2,

View File

@ -10,6 +10,7 @@ services:
"./btcd",
"--devnet",
"--addrindex",
"--acceptanceindex",
# "--generate",
"--nodnsseed",
"--miningaddr=dagtest:qrgufg4qzfqacfzrf6xvx46aqedr5nke3qv6a74fex",
@ -32,6 +33,7 @@ services:
"./btcd",
"--devnet",
"--addrindex",
"--acceptanceindex",
"--connect=first",
"--rpcuser=user",
"--rpcpass=pass",
@ -60,6 +62,7 @@ services:
# here starts btcd parameters
"--devnet",
"--addrindex",
"--acceptanceindex",
"--connect=first",
"--rpcuser=user",
"--rpcpass=pass",