BlockPo / BlockPo-to-Tradelayer

Incubation Repo for the TradeLayer protocol, 0.2.0
http://www.tradelayer.org
Other
8 stars 8 forks source link

Le Crash Bug #489

Open patrickdugan opened 1 year ago

patrickdugan commented 1 year ago

On sync, the client often crashes, when it does so is not entirely deterministic. Removing asserts and division operations without 0 handling improved the condition.

Now, the crash that we're getting seems to be related to logic in the Liquidation Engine

Both of these seem to crash around Block 2539992, though there are crashes that come later.

It seems like interaction with the liquidation engine logic for contract #17 is leading to a problem, why would that be, must be some edge case inside that math?

relevantcrashlog.log tradelayer_004480.log

patrickdugan commented 1 year ago

I think this is /0 based and I've rooted it out, will close when I can successfully sync a full node.

patrickdugan commented 1 year ago

These may be the last ones.

https://github.com/BlockPo/BlockPo-to-Tradelayer/commit/bd390cff1d8d7ae886b945ecee7bde658d1ef742

patrickdugan commented 1 year ago

We think this is still related to /0 issues incurred by negative numbers entering into the accounting based on a failure in the logic flow relating to loss socialization.