func ChainSyncAsync() {
	if !chainSyncRunning {
		chainSyncRunning = true
		go ChainSync()
	}
}
ChainSyncAsync triggers the chain sync job in the background and returns
package jobs
import (
	"database/sql"
	"encoding/json"
	"fmt"
	"strconv"
	"strings"
	"time"
	"github.com/lbryio/chainquery/daemon/processing"
	"github.com/lbryio/chainquery/datastore"
	"github.com/lbryio/chainquery/global"
	"github.com/lbryio/chainquery/lbrycrd"
	"github.com/lbryio/chainquery/metrics"
	"github.com/lbryio/chainquery/model"
	"github.com/lbryio/lbry.go/extras/errors"
	"github.com/lbryio/lbry.go/v2/schema/stake"
	"github.com/sirupsen/logrus"
	"github.com/volatiletech/null"
	"github.com/volatiletech/sqlboiler/boil"
	"github.com/volatiletech/sqlboiler/queries/qm"
)
var chainSyncRunning = false
var chainSync *chainSyncStatus
var ChainSyncRunDuration int
var ChainSyncDelay int
const chainSyncJob = "chainsync"