Closed robinbb closed 2 months ago
Note that in your original PR, the following command line options should not have appeared in 'database' commands, since they are offline commands:
--web-hostname <WEB_HOSTNAME>
Web server hostname for REST and GraphQL [default: localhost]
--web-port <WEB_PORT>
Web server port for REST and GraphQL [default: 8080]
Create a new mina indexer database to use with `mina-indexer start`
Usage: mina-indexer database create [OPTIONS] [GENESIS_CONSTANTS] [CONSTRAINT_SYSTEM_DIGESTS]... [-- <PID>]
Arguments:
[GENESIS_CONSTANTS] Path to the genesis constants (JSON)
[CONSTRAINT_SYSTEM_DIGESTS]... Override the constraint system digests
[PID] Indexer process ID
It is impossible to dictate a process ID, so that should not be taken as an argument.
This diff against the original PR causes tier3 to work:
--- a/ops/helpers.rb
+++ b/ops/helpers.rb
@@ -95,9 +95,10 @@ end
# Database directory
-v = JSON.parse(`#{EXE_SRC} db-version`)
-DB_VERSION_JSON = v
-DB_VERSION = v['major'].to_s + '.' + v['minor'].to_s + '.' + v['patch'].to_s
+# v = JSON.parse(`#{EXE_SRC} db-version`)
+# DB_VERSION_JSON = v
+# DB_VERSION = v['major'].to_s + '.' + v['minor'].to_s + '.' + v['patch'].to_s
+DB_VERSION = "0.7.2"
def db_dir(block_height)
BASE_DIR + '/db/' + DB_VERSION + '-' + block_height.to_s
So, also just making 'mina-indexer db-version' should work, too.
I could also push the above hack on top of the reversion to this reversion while 'mina-indexer db-version' gets fixed?
@Isaac-DeFrain the PR produces new faulty behaviour with 'db-version', which is supposed to tell the database version, but now gives:
It is important that no server exist when that command is run.