node/hack/repair: remove state directory
commit-id:74906ad4
This commit is contained in:
parent
b54b7e1183
commit
632e8acbee
|
@ -15,7 +15,6 @@ import (
|
|||
"google.golang.org/grpc"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
@ -29,7 +28,6 @@ var (
|
|||
}
|
||||
|
||||
solanaRPC = flag.String("solanaRPC", "http://localhost:8899", "Solana RPC address")
|
||||
stateDir = flag.String("stateDir", "./repairState", "State directory")
|
||||
adminRPC = flag.String("adminRPC", "/run/guardiand/admin.socket", "Admin RPC address")
|
||||
solanaAddr = flag.String("solanaProgram", "worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth", "Solana program address")
|
||||
)
|
||||
|
@ -106,11 +104,6 @@ func main() {
|
|||
|
||||
limiter := rate.NewLimiter(rate.Every(100*time.Millisecond), 10)
|
||||
|
||||
err = os.MkdirAll(*stateDir, 0755)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to create state directory: %v", err)
|
||||
}
|
||||
|
||||
var before solana.Signature
|
||||
|
||||
decoded, err := hex.DecodeString(emitter)
|
||||
|
|
Loading…
Reference in New Issue