Justin Moeller

Results 22 issues of Justin Moeller

This PR refactors the client to use the new database transaction trait. The client does not rely on snapshots or rolling back of transactions. This PR also removes DbBatch and...

Hi, Is it possible to open an OptimisiticTransactionDB in read only mode? I see an [API in DBCommon ](https://docs.rs/rocksdb/latest/rocksdb/struct.DBCommon.html) for opening a DB in read-only mode, but the [OptimisiticTransactionDB](https://docs.rs/rocksdb/latest/rocksdb/type.OptimisticTransactionDB.html) doesn't...

Fixes: https://github.com/fedimint/fedimint/issues/4797 Changes the default of the CLI to use a random gateway if no gateway is specified via `gateway-id` instead of defaulting to an internal invoice.

backport releases/v0.3

This PR makes some small improvements to the logging during the database migrations and also re-introduces a short-circuit mechanism to prevent running the database migrations on newly created databases. Some...

See https://github.com/fedimint/fedimint/issues/4014 for motivation. I believe the `Refundable` state is unnecessary in the lightning client state machine and can be removed. This eliminates a state transition, but also eliminates the...

Some feedback from @benthecarman is to add `GatewayStrategy` enum for our lightning operations. That way, integrating wallets don't need to re-implement gateway management and we can provide some easy helpers...

lightning

https://github.com/fedimint/fedimint/pull/4620#pullrequestreview-1947381638 for context This will be useful as we add more database nesting, such as multi-layer nested for clients to share the same database.

db

Working towards: https://github.com/fedimint/fedimint/issues/5168 This should be one of the last cleanup PRs of the Lightning tests. This PR removes the `GatewayTest` struct. `GatewayTest` was just a wrapper around `Gateway` that...

Fixes: https://github.com/fedimint/fedimint/issues/5121 I ended up keeping `network` in the individual module configs, but just passing the global value into it. To me this seemed like the easiest choice, but I'm...

With the development of the gateway (and devimint in parallel) our lightning tests have grown and morphed to a point where they are now difficult to work with. This issue...

lightning
testing