Skip to content

Commit 14901de

Browse files
committed
feat: rename to KeyName
1 parent de95895 commit 14901de

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

cmd/rollkit/commands/run_node_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func TestParseFlags(t *testing.T) {
3333
"--rollkit.da_mempool_ttl", "10",
3434
"--rollkit.da_namespace", "namespace",
3535
"--rollkit.da_start_height", "100",
36-
"--rollkit.da_keyring_keyname", "my_celes_key",
36+
"--rollkit.da_keyname", "my_celes_key",
3737
"--rollkit.lazy_aggregator",
3838
"--rollkit.lazy_block_time", "2m",
3939
"--rollkit.light",
@@ -85,7 +85,7 @@ func TestParseFlags(t *testing.T) {
8585
{"DAMempoolTTL", nodeConfig.DAMempoolTTL, uint64(10)},
8686
{"DANamespace", nodeConfig.DANamespace, "namespace"},
8787
{"DAStartHeight", nodeConfig.DAStartHeight, uint64(100)},
88-
{"DAKeyringKeyname", nodeConfig.DAKeyringKeyname, "my_celes_key"},
88+
{"DAKeyName", nodeConfig.DAKeyName, "my_celes_key"},
8989
{"LazyAggregator", nodeConfig.LazyAggregator, true},
9090
{"LazyBlockTime", nodeConfig.LazyBlockTime, 2 * time.Minute},
9191
{"Light", nodeConfig.Light, true},

cmd/rollkit/docs/rollkit_start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ rollkit start [flags]
3636
--rollkit.da_block_time duration DA chain block time (for syncing) (default 15s)
3737
--rollkit.da_gas_multiplier float DA gas price multiplier for retrying blob transactions
3838
--rollkit.da_gas_price float DA gas price for blob transactions (default -1)
39-
--rollkit.da_keyring_keyname string DA keyring.keyname to submit blob transactions
39+
--rollkit.da_keyname string DA keyring keyname to submit blob transactions
4040
--rollkit.da_mempool_ttl uint number of DA blocks until transaction is dropped from the mempool
4141
--rollkit.da_namespace string DA namespace to submit blob transactions
4242
--rollkit.da_start_height uint starting DA block height (for syncing)

config/config.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ const (
2828
FlagDAStartHeight = "rollkit.da_start_height"
2929
// FlagDANamespace is a flag for specifying the DA namespace ID
3030
FlagDANamespace = "rollkit.da_namespace"
31-
// FlagDAKeyringKeyname is a flag to specify the key name to use for blobs submission on celestia-node
32-
FlagDAKeyringKeyname = "rollkit.da_keyring_keyname"
31+
// FlagDAKeyName is a flag to specify the key name to use for blobs submission on celestia-node
32+
FlagDAKeyName = "rollkit.da_keyname"
3333
// FlagLight is a flag for running the node in light mode
3434
FlagLight = "rollkit.light"
3535
// FlagTrustedHash is a flag for specifying the trusted hash
@@ -64,7 +64,7 @@ type NodeConfig struct {
6464

6565
// CLI flags
6666
DANamespace string `mapstructure:"da_namespace"`
67-
DAKeyringKeyname string `mapstructure:"da_keyring_keyname"`
67+
DAKeyName string `mapstructure:"da_keyname"`
6868
}
6969

7070
// HeaderConfig allows node to pass the initial trusted header hash to start the header exchange service
@@ -131,7 +131,7 @@ func (nc *NodeConfig) GetViperConfig(v *viper.Viper) error {
131131
nc.DANamespace = v.GetString(FlagDANamespace)
132132
nc.DAStartHeight = v.GetUint64(FlagDAStartHeight)
133133
nc.DABlockTime = v.GetDuration(FlagDABlockTime)
134-
nc.DAKeyringKeyname = v.GetString(FlagDAKeyringKeyname)
134+
nc.DAKeyName = v.GetString(FlagDAKeyName)
135135
nc.BlockTime = v.GetDuration(FlagBlockTime)
136136
nc.LazyAggregator = v.GetBool(FlagLazyAggregator)
137137
nc.Light = v.GetBool(FlagLight)
@@ -157,7 +157,7 @@ func AddFlags(cmd *cobra.Command) {
157157
cmd.Flags().Float64(FlagDAGasMultiplier, def.DAGasMultiplier, "DA gas price multiplier for retrying blob transactions")
158158
cmd.Flags().Uint64(FlagDAStartHeight, def.DAStartHeight, "starting DA block height (for syncing)")
159159
cmd.Flags().String(FlagDANamespace, def.DANamespace, "DA namespace to submit blob transactions")
160-
cmd.Flags().String(FlagDAKeyringKeyname, def.DAKeyringKeyname, "DA keyring.keyname to submit blob transactions")
160+
cmd.Flags().String(FlagDAKeyName, def.DAKeyName, "DA keyring keyname to submit blob transactions")
161161
cmd.Flags().Bool(FlagLight, def.Light, "run light client")
162162
cmd.Flags().String(FlagTrustedHash, def.TrustedHash, "initial trusted hash to start the header exchange service")
163163
cmd.Flags().Uint64(FlagMaxPendingBlocks, def.MaxPendingBlocks, "limit of blocks pending DA submission (0 for no limit)")

da/da.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Rollkit provides a wrapper for [go-da][go-da], a generic data availability inter
99
* `--rollkit.da_address`: url address of the DA service (default: "grpc://localhost:26650")
1010
* `--rollkit.da_auth_token`: authentication token of the DA service
1111
* `--rollkit.da_namespace`: namespace to use when submitting blobs to the DA service
12-
* `--rollkit.da_keyring_keyname`: keyring.keyname used when submitting blobs to the DA service (default: my_celes_key)
12+
* `--rollkit.da_keyname`: keyring keyname used when submitting blobs to the DA service (default: my_celes_key)
1313

1414
Given a set of blocks to be submitted to DA by the block manager, the `SubmitBlocks` first encodes the blocks using protobuf (the encoded data are called blobs) and invokes the `Submit` method on the underlying DA implementation. On successful submission (`StatusSuccess`), the DA block height which included in the rollup blocks is returned.
1515

0 commit comments

Comments
 (0)