Jordan Hrycaj 3198ad1bbd
Fix default pruning for ledger and update core db and ledger logging (#1861)
* Make sure that storage tries are not pruned (by default) on the new Ledger API

why:
  Pruning might kill some unwanted entries from storage tries ending up with an unstable database
  leading to crashes.

* Implement `CoreDb` and `LedgerRef` API tracing

details:
+ Locally enabled at compile time via constants `ProvideCoreDbLegacyAPI`
  and `EnableApiTracking` in either `base.nim` source
+ If enabled it can be selectively turned on/off via public switches in
  the `CoreDb` descriptor.

* Allow suppressing opportunistic `ifNecessaryGetXxx()` functions

why:
  Better troubleshooting when the system crashes (assertions will then
  most probably happen outside an `async` function.)
2023-10-25 15:03:09 +01:00
..
2023-08-28 21:36:23 +07:00
2022-12-02 13:51:42 +07:00
2022-12-02 13:51:42 +07:00
2022-12-02 13:51:42 +07:00
2022-12-02 13:51:42 +07:00
2023-08-28 21:36:23 +07:00
2023-08-03 12:10:38 +07:00
2022-12-02 13:51:42 +07:00
2023-08-28 21:36:23 +07:00
2023-05-31 10:14:26 +07:00