mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-10-14 00:59:33 +00:00
[NOD-455] Make GetFeeEstimateHandler return err, not HandlerError (#485)
This commit is contained in:
parent
db6e9c773f
commit
af39e96e3e
@ -2,12 +2,11 @@ package controllers
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/daglabs/btcd/apiserver/apimodels"
|
"github.com/daglabs/btcd/apiserver/apimodels"
|
||||||
"github.com/daglabs/btcd/httpserverutils"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetFeeEstimatesHandler returns the fee estimates for different priorities
|
// GetFeeEstimatesHandler returns the fee estimates for different priorities
|
||||||
// for accepting a transaction in the DAG.
|
// for accepting a transaction in the DAG.
|
||||||
func GetFeeEstimatesHandler() (interface{}, *httpserverutils.HandlerError) {
|
func GetFeeEstimatesHandler() (interface{}, error) {
|
||||||
return &apimodels.FeeEstimateResponse{
|
return &apimodels.FeeEstimateResponse{
|
||||||
HighPriority: 3,
|
HighPriority: 3,
|
||||||
NormalPriority: 2,
|
NormalPriority: 2,
|
||||||
|
@ -10,6 +10,7 @@ services:
|
|||||||
"./btcd",
|
"./btcd",
|
||||||
"--devnet",
|
"--devnet",
|
||||||
"--addrindex",
|
"--addrindex",
|
||||||
|
"--acceptanceindex",
|
||||||
# "--generate",
|
# "--generate",
|
||||||
"--nodnsseed",
|
"--nodnsseed",
|
||||||
"--miningaddr=dagtest:qrgufg4qzfqacfzrf6xvx46aqedr5nke3qv6a74fex",
|
"--miningaddr=dagtest:qrgufg4qzfqacfzrf6xvx46aqedr5nke3qv6a74fex",
|
||||||
@ -32,6 +33,7 @@ services:
|
|||||||
"./btcd",
|
"./btcd",
|
||||||
"--devnet",
|
"--devnet",
|
||||||
"--addrindex",
|
"--addrindex",
|
||||||
|
"--acceptanceindex",
|
||||||
"--connect=first",
|
"--connect=first",
|
||||||
"--rpcuser=user",
|
"--rpcuser=user",
|
||||||
"--rpcpass=pass",
|
"--rpcpass=pass",
|
||||||
@ -60,6 +62,7 @@ services:
|
|||||||
# here starts btcd parameters
|
# here starts btcd parameters
|
||||||
"--devnet",
|
"--devnet",
|
||||||
"--addrindex",
|
"--addrindex",
|
||||||
|
"--acceptanceindex",
|
||||||
"--connect=first",
|
"--connect=first",
|
||||||
"--rpcuser=user",
|
"--rpcuser=user",
|
||||||
"--rpcpass=pass",
|
"--rpcpass=pass",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user