Skip to content

Database

Debendra Oli edited this page Mar 17, 2024 · 6 revisions

The centralized-rly database is used to store messages that are relayed or to be relayed between chains also the chain's last block information.

Usages

The detailed documentation for the commands can be found here.

centralized-relay db --help

Flags:
  -h, --help   help for db
  --db-path string   path to the database file (default "$HOME/.centralized-relay/db")

List all the messages in the database

centralized-relay db messages list --chain <nid>

Relay a message from the database manually that is not yet relayed and unknown to the relay on height 32359902

centralized-relay db messages relay --chain 0x2.icon --sn 1 --height 32359902

Relay a message from the database manually that is not yet relayed but exists on the database

centralized-relay db messages relay --chain 0x2.icon --sn 1

Remove a message from the database

centralized-relay db messages remove --chain 0x2.icon --sn 1

Prune the database

centralized-relay db prune