threefoldtech / tfchain

Threefold Chain.
Apache License 2.0
15 stars 11 forks source link

Instrumentation: Refactor billing logic to improve auditability and log all major steps #989

Closed sameh-farouk closed 1 week ago

sameh-farouk commented 4 months ago

Currently, a lot of billing logic is hidden inside a black box. We don't have enough logs to audit any abnormal behavior in contract billing. Also, Things like overflowed calculations when encountered are handled implicitly without any logs.

The billing code is crucial and must be properly instrumented.

Benefits:

Additional context

https://github.com/threefoldtech/home/issues/1560

sameh-farouk commented 3 months ago

Update: Almost done