mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-25 21:21:33 +02:00
graph/db: fix progress logs
This commit is contained in:
@@ -603,6 +603,7 @@ func migratePruneLog(ctx context.Context, kvBackend kvdb.Backend,
|
|||||||
hash *chainhash.Hash) error {
|
hash *chainhash.Hash) error {
|
||||||
|
|
||||||
count++
|
count++
|
||||||
|
chunk++
|
||||||
|
|
||||||
// Keep track of the prune tip height and hash.
|
// Keep track of the prune tip height and hash.
|
||||||
if height > pruneTipHeight {
|
if height > pruneTipHeight {
|
||||||
@@ -786,6 +787,7 @@ func migrateClosedSCIDIndex(ctx context.Context, kvBackend kvdb.Backend,
|
|||||||
)
|
)
|
||||||
migrateSingleClosedSCID := func(scid lnwire.ShortChannelID) error {
|
migrateSingleClosedSCID := func(scid lnwire.ShortChannelID) error {
|
||||||
count++
|
count++
|
||||||
|
chunk++
|
||||||
|
|
||||||
chanIDB := channelIDToBytes(scid.ToUint64())
|
chanIDB := channelIDToBytes(scid.ToUint64())
|
||||||
err := sqlDB.InsertClosedChannel(ctx, chanIDB)
|
err := sqlDB.InsertClosedChannel(ctx, chanIDB)
|
||||||
@@ -874,6 +876,7 @@ func migrateZombieIndex(ctx context.Context, kvBackend kvdb.Backend,
|
|||||||
}
|
}
|
||||||
|
|
||||||
count++
|
count++
|
||||||
|
chunk++
|
||||||
|
|
||||||
err = sqlDB.UpsertZombieChannel(
|
err = sqlDB.UpsertZombieChannel(
|
||||||
ctx, sqlc.UpsertZombieChannelParams{
|
ctx, sqlc.UpsertZombieChannelParams{
|
||||||
|
Reference in New Issue
Block a user