WIP: next hard fork #5

Draft
BrannonKing wants to merge 178 commits from WIP-HF-2022 into master
Showing only changes of commit a5050cf2de - Show all commits

View file

@ -18,6 +18,8 @@ import (
"github.com/btcsuite/btcd/blockchain/indexers" "github.com/btcsuite/btcd/blockchain/indexers"
"github.com/btcsuite/btcd/database" "github.com/btcsuite/btcd/database"
"github.com/btcsuite/btcd/limits" "github.com/btcsuite/btcd/limits"
"github.com/felixge/fgprof"
) )
const ( const (
@ -65,6 +67,7 @@ func btcdMain(serverChan chan<- *server) error {
// Enable http profiling server if requested. // Enable http profiling server if requested.
if cfg.Profile != "" { if cfg.Profile != "" {
http.DefaultServeMux.Handle("/debug/fgprof", fgprof.Handler())
go func() { go func() {
listenAddr := net.JoinHostPort("", cfg.Profile) listenAddr := net.JoinHostPort("", cfg.Profile)
btcdLog.Infof("Profile server listening on %s", listenAddr) btcdLog.Infof("Profile server listening on %s", listenAddr)