* ledger-storage-bigtable boilerplate (cherry picked from commit9d2293bb32
) * $ wget https://pki.goog/roots.pem -O pki-goog-roots.pem (cherry picked from commit1617a025ce
) * Add access_token module (cherry picked from commit59d266a111
) * Add root_ca_certificate (cherry picked from commitfaa016e4b7
) * Add build-proto (cherry picked from commitc31e1f5bf0
) * UiTransactionEncoding is now copy (cherry picked from commit494968be66
) * Increase timeout (cherry picked from commit57dfebc5ba
) * Add build-proto/build.sh output (cherry picked from commit54dae6ba2c
) * Supress doctest errors (cherry picked from commit019c75797d
) * Add compression (cherry picked from commit243e05d59f
) * Add bigtable (cherry picked from commit6e0353965a
) * Add configuration info (cherry picked from commit98cca1e774
) * Add ledger-tool bigtable subcommands (cherry picked from commitf9049d6ee4
) # Conflicts: # ledger-tool/Cargo.toml * Make room for tokio 0.2 (cherry picked from commitb876fb84ba
) # Conflicts: # core/Cargo.toml * Setup a tokio 0.2 runtime for RPC usage (cherry picked from commit0e02740565
) # Conflicts: # core/Cargo.toml * Plumb Bigtable ledger storage into the RPC subsystem (cherry picked from commitdfae9a9864
) # Conflicts: # core/Cargo.toml * Add RPC transaction history design (cherry picked from commite56ea138c7
) * Simplify access token refreshing (cherry picked from commit1f7af14386
) * Report block status more frequently (cherry picked from commit22c46ebf96
) * after -> before (cherry picked from commit227ea934ff
) * Rebase * Cargo.lock Co-authored-by: Michael Vines <mvines@gmail.com>
28 lines
463 B
Bash
Executable File
28 lines
463 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Configures a BigTable instance with the expected tables
|
|
#
|
|
|
|
set -e
|
|
|
|
instance=solana-ledger
|
|
|
|
cbt=(
|
|
cbt
|
|
-instance
|
|
"$instance"
|
|
)
|
|
if [[ -n $BIGTABLE_EMULATOR_HOST ]]; then
|
|
cbt+=(-project emulator)
|
|
fi
|
|
|
|
for table in blocks tx tx-by-addr; do
|
|
(
|
|
set -x
|
|
"${cbt[@]}" createtable $table
|
|
"${cbt[@]}" createfamily $table x
|
|
"${cbt[@]}" setgcpolicy $table x maxversions=1
|
|
"${cbt[@]}" setgcpolicy $table x maxage=360d
|
|
)
|
|
done
|