Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lntest/fee_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,13 @@ func (f *FeeService) Start() error {
// handleRequest handles a client request for fee estimates.
func (f *FeeService) handleRequest(w http.ResponseWriter, _ *http.Request) {
f.lock.Lock()
defer f.lock.Unlock()

bytes, err := json.Marshal(
chainfee.WebAPIResponse{
FeeByBlockTarget: f.feeRateMap,
MinRelayFeerate: f.minRelayFeerate,
},
)
f.lock.Unlock()
require.NoErrorf(f, err, "cannot serialize estimates")

_, err = io.WriteString(w, string(bytes))
Expand Down
Loading