Move assert() out of mvmt for loop. Should assert only once per txn. #5

Open
opened 2025-07-08 08:35:23 -04:00 by AtHeartEngineer · 0 comments

Originally created by @scoobybejesus on 12/30/2021

47c3e35665/crptls/src/import_cost_proceeds_etc.rs (L124)

Or perhaps instead put a var outside the loop to track whether the assert has been run for the current transaction, since the assert() is only run for ToSelf transactions anyway.

*Originally created by @scoobybejesus on 12/30/2021* https://github.com/scoobybejesus/cryptools/blob/47c3e35665fc74213b2112b149c36946fdf758da/crptls/src/import_cost_proceeds_etc.rs#L124 Or perhaps instead put a var outside the loop to track whether the assert has been run for the current transaction, since the assert() is only run for ToSelf transactions anyway.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/cryptools#5