diff --git a/scripts/single-node.sh b/scripts/single-node.sh index b16e2ab545..c57361f576 100755 --- a/scripts/single-node.sh +++ b/scripts/single-node.sh @@ -77,10 +77,24 @@ sed -i'.bak' 's#discard_abci_responses = true#discard_abci_responses = false#g' # Override the VotingPeriod from 1 week to 1 minute sed -i'.bak' 's#"604800s"#"60s"#g' "${CELESTIA_APP_HOME}"/config/genesis.json +# Override the genesis to use app version 1 and then upgrade to app version 2 later. +sed -i'.bak' 's#"app_version": "2"#"app_version": "1"#g' "${CELESTIA_APP_HOME}"/config/genesis.json + # Start celestia-app echo "Starting celestia-app..." celestia-appd start \ --home ${CELESTIA_APP_HOME} \ --api.enable \ --grpc.enable \ - --grpc-web.enable + --grpc-web.enable \ + --v2-upgrade-height 3 + +# Example QGB tx +# celestia-appd tx qgb register \ +# "$(celestia-appd keys show validator --home ${CELESTIA_APP_HOME} --bech val -a)" \ +# 0x966e6f22781EF6a6A82BBB4DB3df8E225DfD9488 \ +# --from ${KEY_NAME} \ +# --home ${CELESTIA_APP_HOME} \ +# --fees 30000utia \ +# --broadcast-mode block \ +# --yes diff --git a/x/blobstream/module.go b/x/blobstream/module.go index 9996c4e57a..cfd7f195a7 100644 --- a/x/blobstream/module.go +++ b/x/blobstream/module.go @@ -5,6 +5,8 @@ import ( "encoding/json" "fmt" + bscmd "github.com/celestiaorg/celestia-app/v2/x/blobstream/client" + "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" @@ -77,16 +79,14 @@ func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *r } } -// GetTxCmd returns no command for this module because blobstream was disabled -// in v2. +// GetTxCmd returns the capability module's root tx command. func (a AppModuleBasic) GetTxCmd() *cobra.Command { - return nil + return bscmd.GetTxCmd() } -// GetQueryCmd returns no query command for this module because blobstream was -// disabled in v2. +// GetQueryCmd returns the capability module's root query command. func (AppModuleBasic) GetQueryCmd() *cobra.Command { - return nil + return bscmd.GetQueryCmd() } // ----------------------------------------------------------------------------