**Changelog:**
- Improved the logic for credit mining by deploying a multi-level investment policy.
- Added an option to sort torrent files in the user interface.
- Added the ability to record historical transactions in the market.
- Added logging of the state directory that Tribler is using.
- Addressed various security issues in the decentralized market implementation.
- Removed the pymdht module and use our own DHT implementation instead.
- Fixed an issue where Tribler attempts to send bytes over an already closed circuit.
- Fixed an issue that prevents circuits from being recreated.
- Fixed various issues and crashes in the decentralized market.
- Fixed various issues related to VLC bundling on macOS.
- Fixed a crash when changing the anonymity of a specific download.
- Fixed a crash when starting a download.
- Fixed a crash when subscribing to a channel.
- Fixed a crash when an invalid bloomfilter is being transmitted to others.
- Fixed an error during the database shutdown when closing Tribler.
- Fixed a crash when libtorrent sessions are not available.
- Slightly changed the presentation of the token balance in the user interface.
- Fixed a crash during video-on-demand playback.
- Fixed a crash when receiving a libtorrent alert.
- Fixed an issue when excluding specific files during a download.
- Fixed multiple issues when creating a new order in the decentralized market.
- Fixed a crash with the key/value database.
- Fixed a crash when parsing a malformed remote search query.