lnd/channeldb/migration30
Elle Mouton 2c786ec66f
channeldb: add local and remote balance to revocation log
This commit re-adds the LocalBalance and RemoteBalance fields to the
RevocationLog. The channeldb/migration30 is also adjusted so that anyone
who has not yet run the optional migration will not lose these fields if
they run the migration after this commit.

The reason for re-adding these fields is that they are needed if we want
to reconstruct all the info of the lnwallet.BreachRetribution without
having access to the breach spend transaction. In most cases we would
have access to the spend tx since we would see it on-chain at which time
we would want to reconstruct the retribution info. However, for the
watchtower subsystem, we sometimes want to construct the retribution
info withouth having access to the spend transaction.

A user can use the `--no-rev-log-amt-data` flag to opt-out of storing
these amount fields.
2023-02-16 20:47:35 +02:00
..
iterator_test.go channeldb: use T.TempDir to create temporary test directory 2022-08-24 08:58:16 +08:00
iterator.go multi: fix make fmt 2022-08-23 22:10:24 +08:00
lnwallet.go multi: fix make fmt 2022-08-23 22:10:24 +08:00
log.go migration30: add iterator to assist migration 2022-07-12 20:51:45 +08:00
migration_test.go channeldb: add local and remote balance to revocation log 2023-02-16 20:47:35 +02:00
migration.go channeldb: add local and remote balance to revocation log 2023-02-16 20:47:35 +02:00
revocation_log.go channeldb: add local and remote balance to revocation log 2023-02-16 20:47:35 +02:00
test_mock.go migration30: add benchmark test 2022-07-12 21:01:11 +08:00
test_utils.go channeldb: add local and remote balance to revocation log 2023-02-16 20:47:35 +02:00