Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(server/v2) Add prune cmd to serverv2 #20736

Merged
merged 80 commits into from
Jul 23, 2024
Merged
Changes from 1 commit
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
8f89f81
add prune func
hieuvubk Jun 20, 2024
462dd13
add prune cmd
hieuvubk Jun 20, 2024
33f674a
add to cmd set
hieuvubk Jun 20, 2024
0c3c6ce
Merge branch 'main' into hieu/prune-v2
hieuvubk Jun 20, 2024
45be505
lint
hieuvubk Jun 20, 2024
4769135
move prune to store component
hieuvubk Jun 20, 2024
d4927b4
rename
hieuvubk Jun 20, 2024
b99e554
add to simapp
hieuvubk Jun 20, 2024
44d609c
lint
hieuvubk Jun 20, 2024
8c4822e
Merge branch 'main' into hieu/prune-v2
hieuvubk Jun 20, 2024
63b1b03
move flags to component
hieuvubk Jun 20, 2024
0907699
Merge branch 'hieu/prune-v2' of https://github.com/cosmos/cosmos-sdk …
hieuvubk Jun 20, 2024
ac93a66
New func
hieuvubk Jun 20, 2024
40eab2f
unexpected change
hieuvubk Jun 20, 2024
974e3f9
lint
hieuvubk Jun 20, 2024
3ae993a
write store config to app.toml
hieuvubk Jun 20, 2024
7b5fda6
read store config in Init
hieuvubk Jun 20, 2024
8071c9f
update logic: read pruning options from flag or app.toml
hieuvubk Jun 20, 2024
b6a6cfe
lint
hieuvubk Jun 20, 2024
e70f3db
go mod
hieuvubk Jun 20, 2024
c6f36fe
make as pointer
hieuvubk Jun 20, 2024
19cf97d
Merge branch 'main' into hieu/prune-v2
hieuvubk Jun 20, 2024
36db1e7
Merge branch 'main' into hieu/prune-v2
hieuvubk Jun 21, 2024
62ab829
Merge branch 'main' into hieu/prune-v2
hieuvubk Jun 21, 2024
323250a
Init only return err
hieuvubk Jun 21, 2024
bc06fdf
Merge branch 'main' into hieu/prune-v2
hieuvubk Jun 24, 2024
dab94a4
merge & resolve conflict
hieuvubk Jun 24, 2024
e0bc1d7
remove v2/store go.mod
hieuvubk Jun 24, 2024
feb346d
simapp go mod tidy
hieuvubk Jun 24, 2024
ace696d
upstream prune v1 options helper
hieuvubk Jun 24, 2024
1bd995d
address comment
hieuvubk Jun 24, 2024
5099084
go mod tidy
hieuvubk Jun 24, 2024
a70891c
lint
hieuvubk Jun 24, 2024
355e8e2
remove store v1
hieuvubk Jun 24, 2024
916627d
Merge branch 'main' into hieu/prune-v2
hieuvubk Jun 25, 2024
46334c8
unused
hieuvubk Jun 25, 2024
0c28588
move AppI, AppCreator, CLIConfig to core/server
hieuvubk Jun 26, 2024
eda5037
move to store/v2
hieuvubk Jun 26, 2024
8becfe3
update simapp
hieuvubk Jun 26, 2024
ccc0976
lint
hieuvubk Jun 26, 2024
75906b0
merge main
hieuvubk Jun 26, 2024
0676698
go mod tidy all
hieuvubk Jun 26, 2024
1c08a6d
collections go mod
hieuvubk Jun 26, 2024
2d3e581
viper as AppOptions
hieuvubk Jun 27, 2024
07a53d1
abtract HasCLICommands
hieuvubk Jun 27, 2024
31c3da4
go mod tidy all
hieuvubk Jun 27, 2024
93e797b
merge & resolve conflict
hieuvubk Jun 27, 2024
7ca4458
lint
hieuvubk Jun 27, 2024
316a9d2
resolve conflict
hieuvubk Jun 27, 2024
f1d40fc
update x/tx go mod
hieuvubk Jun 27, 2024
57682b5
merge & resolve conflict
hieuvubk Jun 28, 2024
ee6057b
merge main & resolve conflict
hieuvubk Jul 8, 2024
4e871f1
create root store without app instance
hieuvubk Jul 8, 2024
ad013c5
update
hieuvubk Jul 8, 2024
1984592
go mod tidy all
hieuvubk Jul 8, 2024
d81532a
lint
hieuvubk Jul 8, 2024
3dba15d
print err format
hieuvubk Jul 8, 2024
ccc3722
reduce go mod change
hieuvubk Jul 8, 2024
6b5b25a
bring back to server/v2
hieuvubk Jul 16, 2024
9a992b7
lint
hieuvubk Jul 16, 2024
a7a38ed
Factory options take viper as store options
hieuvubk Jul 17, 2024
786995a
should work
hieuvubk Jul 17, 2024
58fface
resolve conflict
hieuvubk Jul 17, 2024
43b23c1
handle flags & print
hieuvubk Jul 18, 2024
158f3e5
remove FactoryOptions from AppInputs & Build from viper
hieuvubk Jul 18, 2024
3fa1187
refactor
hieuvubk Jul 18, 2024
5dcd3c4
handle keep-recent flag
hieuvubk Jul 18, 2024
c602198
home flag
hieuvubk Jul 18, 2024
f833ca4
runtime AppInputs take a viper
hieuvubk Jul 19, 2024
a2cd556
resolve conflict
hieuvubk Jul 19, 2024
1a56ec6
refactor
hieuvubk Jul 19, 2024
67cf8b4
lint
hieuvubk Jul 19, 2024
237ef66
godoc
hieuvubk Jul 19, 2024
ded5c63
remove viper dep
hieuvubk Jul 22, 2024
30e521f
multiple db back end
hieuvubk Jul 23, 2024
700d59c
lint
hieuvubk Jul 23, 2024
7d6bdaa
add comment
hieuvubk Jul 23, 2024
145dcc2
Merge branch 'main' into hieu/prune-v2
hieuvubk Jul 23, 2024
3d01423
comments
hieuvubk Jul 23, 2024
32249d3
DefaultStoreOptions to store/v2/root
hieuvubk Jul 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update simapp
  • Loading branch information
hieuvubk committed Jun 26, 2024
commit 8becfe3855aca1a9930ecc00eb58b2890d86fbde
7 changes: 4 additions & 3 deletions simapp/v2/simdv2/cmd/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ import (
"github.com/spf13/viper"

"cosmossdk.io/client/v2/offchain"
servercore "cosmossdk.io/core/server"
"cosmossdk.io/core/transaction"
"cosmossdk.io/log"
runtimev2 "cosmossdk.io/runtime/v2"
serverv2 "cosmossdk.io/server/v2"
"cosmossdk.io/server/v2/api/grpc"
"cosmossdk.io/server/v2/cometbft"
"cosmossdk.io/server/v2/store"
"cosmossdk.io/simapp/v2"
storev2 "cosmossdk.io/store/v2"
confixcmd "cosmossdk.io/tools/confix/cmd"
authcmd "cosmossdk.io/x/auth/client/cli"

Expand Down Expand Up @@ -53,7 +54,7 @@ func (t *temporaryTxDecoder) DecodeJSON(bz []byte) (transaction.Tx, error) {
func newApp(
logger log.Logger,
viper *viper.Viper,
) serverv2.AppI[transaction.Tx] {
) servercore.AppI[transaction.Tx] {
sa := simapp.NewSimApp(logger, viper)
return sa
}
Expand Down Expand Up @@ -85,7 +86,7 @@ func initRootCmd(
logger,
cometbft.New(&temporaryTxDecoder{txConfig}),
grpc.New(),
store.New(),
storev2.New(),
); err != nil {
panic(err)
}
Expand Down
Loading