mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
In the upcoming actions migration, we need fetch LNDs macaroons prior to initializing the stores, as the macaroons will be required during the migration. This requires that we setup the connection to LND before we initialize the stores, as we can only fetch the macaroons after the LND connection is established. In preparation of doing so, we cannot reference the stores when initializing/creating the accounts RPC server object, as we do so prior to setting up the LND connection. This commit therefore refactors the accounts RPC server so that we separate the initializing from the starting of the RPC server, and only require the store reference during the actual startup of the RPC server. Note that we still keep the init of the accounts RPC server reference prior to setting up the LND connection, as not doing so would require that we'd refactor the registering of `GrpcSubserver`s in a more complex and in a less elegant way. |
||
|---|---|---|
| .. | ||
| checkers.go | ||
| checkers_test.go | ||
| context.go | ||
| errors.go | ||
| interceptor.go | ||
| interceptor_test.go | ||
| interface.go | ||
| log.go | ||
| rpcserver.go | ||
| service.go | ||
| service_test.go | ||
| sql_migration.go | ||
| sql_migration_test.go | ||
| store_kvdb.go | ||
| store_sql.go | ||
| store_test.go | ||
| test_kvdb.go | ||
| test_postgres.go | ||
| test_sql.go | ||
| test_sqlite.go | ||
| tlv.go | ||