Skip to content

Commit

Permalink
all: Refactor for coreutils
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechampine committed Jan 16, 2024
1 parent 5beb023 commit 9742e21
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 1,480 deletions.
4 changes: 2 additions & 2 deletions api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import (
"testing"
"time"

"go.sia.tech/core/chain"
"go.sia.tech/core/consensus"
"go.sia.tech/core/gateway"
"go.sia.tech/core/types"
"go.sia.tech/coreutils/chain"
"go.sia.tech/coreutils/syncer"
"go.sia.tech/jape"
"go.sia.tech/walletd/api"
"go.sia.tech/walletd/internal/syncerutil"
"go.sia.tech/walletd/internal/walletutil"
"go.sia.tech/walletd/syncer"
"go.sia.tech/walletd/wallet"
"lukechampine.com/frand"
)
Expand Down
2 changes: 1 addition & 1 deletion api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"go.sia.tech/core/consensus"
"go.sia.tech/core/gateway"
"go.sia.tech/core/types"
"go.sia.tech/walletd/syncer"
"go.sia.tech/coreutils/syncer"
"go.sia.tech/walletd/wallet"
)

Expand Down
9 changes: 0 additions & 9 deletions cmd/walletd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ func main() {
sendCmd.BoolVar(&v2, "v2", false, "send a v2 transaction")
txnsCmd := flagg.New("txns", txnsUsage)
txpoolCmd := flagg.New("txpool", txpoolUsage)
dbDeleteCmd := flagg.New("deletev1", "delete v1 state from consensus.db")

cmd := flagg.Parse(flagg.Tree{
Cmd: rootCmd,
Expand All @@ -151,7 +150,6 @@ func main() {
{Cmd: sendCmd},
{Cmd: txnsCmd},
{Cmd: txpoolCmd},
{Cmd: dbDeleteCmd},
},
})

Expand Down Expand Up @@ -263,12 +261,5 @@ func main() {
seed := loadTestnetSeed(seed)
c := initTestnetClient(apiAddr, network, seed)
printTestnetTxpool(c, seed)

case dbDeleteCmd:
if len(cmd.Args()) != 0 {
cmd.Usage()
return
}
testnetDeleteV1DBState(dir)
}
}
270 changes: 0 additions & 270 deletions cmd/walletd/multiproof.go

This file was deleted.

Loading

0 comments on commit 9742e21

Please sign in to comment.