Elenpay / NodeGuard

NodeGuard is a treasury management solution for Lightning nodes
GNU Affero General Public License v3.0
18 stars 4 forks source link

Data model for freezing UTXOs #376

Closed markettes closed 4 months ago

markettes commented 4 months ago
- **feat: add address, isFrozen and tag**
- **feat: filter frozen utxos**
- **feat: utxo migration**
- **feat: add postgres for nbxplorer**
- **fix: add migration for optional address and tag**
- **feat: RegisterUTXOs job**
- **feat: add wallet to FMUTXO**
- **feat(FMUTXO.cs): add IsSpent property to determine if UTXO is spent based on channel and withdrawal statuses**
- **feat(FMUTXO.cs): add NBitcoin and NBXplorer dependencies for UTXO model enhancements**
- **feat: consolidate migrations**
- **fix: migration**
- **refactor(ChannelOperationRequestRepositoryTests): add additional null parameter to constructor calls to align with updated constructor signature**
- **Bump deps**
- **Fix problem with new change in nbxplorer when tracking btc addresses**
- **feat: rebuild of the migration**
- **EF Core already does execute the migration in a transaction scope, this was giving a race condition when generating the db (#375)**
- **feat: changes for deps update**
- **Fix AddRangeAsync not using a generic function type making EF Core fail to recognize the entities when saving a list**
- ** Fix  RegisterUTXOsJob to use WalletId instead of Wallet property**
- **fix: rollback changes**
- **feat(FMUTXO.cs): add Blazorise.Extensions for enhanced functionality refactor(FMUTXO.cs): improve IsSpent property logic to handle null collections feat(FUTXORepository.cs): include Tags in FMUTXOs query to provide more detailed data**
- **fix: remove error and set the creation time and the update time**
- **refactor(FUTXORepository.cs): optimize UTXO retrieval logic to enhance performance and accuracy feat(RegisterUTXOsJob.cs): log information after adding new UTXOs to enhance traceability fix(Constants.cs, launchSettings.json): align REGISTER_UTXOS_CRON schedule across configurations for consistency**
RodriFS commented 4 months ago

@markettes @Jossec101 at some point we should remove the utxos from the table once they are spent. Otherwise the table will grow forever. should we make a ticket?

markettes commented 4 months ago

@markettes @Jossec101 at some point we should remove the utxos from the table once they are spent. Otherwise the table will grow forever. should we make a ticket?

That's what we had already, but I agree, we should make a ticket for that @RodriFS. On my way!

The only problem with that is losing those UTXOs for the operations made.