This commit is contained in:
Łukasz Magiera
2024-02-16 21:21:25 +01:00
parent a65ec1a9fb
commit a539b83512
3 changed files with 12 additions and 7 deletions
+2 -1
View File
@@ -2,9 +2,10 @@ package hapi
import (
"context"
"time"
"github.com/filecoin-project/lotus/api/client"
cliutil "github.com/filecoin-project/lotus/cli/util"
"time"
)
func (a *app) watchRpc() {
+3 -2
View File
@@ -2,14 +2,15 @@ package hapi
import (
"context"
"github.com/filecoin-project/lotus/api/v1api"
"golang.org/x/xerrors"
"html/template"
"net/http"
"os"
"sync"
"time"
"golang.org/x/xerrors"
"github.com/filecoin-project/lotus/api/v1api"
"github.com/filecoin-project/lotus/lib/harmony/harmonydb"
)
+7 -4
View File
@@ -2,12 +2,15 @@ package hapi
import (
"context"
"github.com/BurntSushi/toml"
"github.com/filecoin-project/go-address"
"github.com/filecoin-project/lotus/chain/types"
"golang.org/x/xerrors"
"sort"
"time"
"github.com/BurntSushi/toml"
"golang.org/x/xerrors"
"github.com/filecoin-project/go-address"
"github.com/filecoin-project/lotus/chain/types"
)
const watchInterval = time.Second * 10