Closed ilhanu closed 1 year ago
I think I found out the origin of the problem:
force_process_onboarded_asset
will consistently clash with the execution of the same extrinsic triggered by the hook in pallet_bidding. Why?
⇒ the execution of this extrinsic is actually time-consuming, especially the investor list creation part. The asset's status is changed only after a successful investor list creation: if the hook triggers the process_onboarded_asset
before the end of the list creation, it will find fake onboarded because already being processed
assets, and start the same job a 2nd time on the same assets.I was not able to produce the it with several assets again. Afaik I didn't use the force_process_onboarded_asset
call.
The manual triggers were temporary created for testing purposes.
Description
The runtime panics when an asset get's finalised before a investors list is assembled --> event
InvestorListCreationSuccessful
Steps to Reproduce
Expected Behavior
_The runtime panic should not be allowed to happen, when the notary finalizes an asset that has not seen the event
InvestorListCreationSuccessful
, it should report an error and not continue the finalisation process.Currently we are only looking for if the status is
onboarded
, but we need to add another state to it for not allowing this to happen_Logs, Errors or Screenshots
[Additional Information](https://paste.ubuntu.com/p/KfwkC9mZZs/)