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

chore: submit a PFB in single-node.sh #2788

Closed
Closed
Changes from all commits
Commits
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
19 changes: 19 additions & 0 deletions scripts/single-node.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think would make sense to have a separate script that sends bunch of PFBs. But I have no strong opinion about this

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea works.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ COINS="1000000000000000utia"
DELEGATION_AMOUNT="5000000000utia"
CELESTIA_APP_HOME="${HOME}/.celestia-app"
CELESTIA_APP_VERSION=$(celestia-appd version 2>&1)
NAMESPACE_ID=01010101010101010101
DATA=FF

echo "celestia-app home: ${CELESTIA_APP_HOME}"
echo "celestia-app version: ${CELESTIA_APP_VERSION}"
Expand Down Expand Up @@ -87,6 +89,23 @@ sed -i'.bak' 's#"tcp://127.0.0.1:26657"#"tcp://0.0.0.0:26657"#g' "${CELESTIA_APP
echo "Registered EVM address."
} &

# Send a PayForBlobs tx
{
# Wait for block 1
sleep 20

echo "Submitting a PayForBlobs tx..."
celestia-appd tx blob PayForBlobs $NAMESPACE_ID $DATA \
--from ${KEY_NAME} \
--keyring-backend=${KEYRING_BACKEND} \
--fees 21000utia \
--yes \
--chain-id ${CHAIN_ID} \
&> /dev/null # Hide output to reduce terminal noise

echo "Submitted PayForBlobs tx"
} &

# Start celestia-app
echo "Starting celestia-app..."
celestia-appd start \
Expand Down