lnd/docs/release-notes/release-notes-0.15.1.md
Olaoluwa Osuntokun 115b041874
Merge pull request #6469 from yyforyongyu/5388-migration
channeldb: add optional migration to prune revocation logs
2022-08-04 17:15:08 -07:00

5.8 KiB

Release Notes

Protocol Extensions

Zero-Conf Channel Opens

Build system

lncli

Database

  • Delete failed payment attempts once payments are settled, unless specified with keep-failed-payment-attempts flag.

  • A new db configuration flag db.prune-revocation is introduced to take the advantage enabled by a recent space optimization. Users can set this flag to true to run an optional db migration during lnd's startup. This flag will prune the old revocation logs and save them using the new format that can save large amount of disk space. For a busy channel with millions of updates, this migration can take quite some time. The benchmark shows it takes roughly 70 seconds to finish a migration with 1 million logs. Of course the actual time taken can vary from machine to machine. Users can run the following benchmark test to get an accurate time it'll take for a channel with 1 millions updates to plan ahead,

    cd ./channeldb/migration30
    go test -bench=. -run=TestMigrateRevocationLogMemCap -benchtime=1000000x -timeout=10m -benchmem
    

Documentation

RPC Server

Bug Fixes

Code Health

Code cleanup, refactor, typo fixes

Tooling and documentation

  • An .editorconfig file was added to autoconfigure most text editors to respect the 80 character line length and to use 8 spaces as the tab size. Rules for Visual Studio Code were also added. And finally, the code formatting rules were extracted into their own document.

Contributors (Alphabetical Order)

  • Carsten Otto
  • Elle Mouton
  • ErikEk
  • Eugene Siegel
  • Matt Morehouse
  • Slyghtning
  • Oliver Gugger
  • Olaoluwa Osuntokun
  • Priyansh Rastogi
  • Tommy Volk
  • Yong Yu