zathras,
Got a few Qs/todo items for you:
* with balances, what is the difference between CBALANCE, CBALANCET, ubalance and ubalancet???
* it appears you clear out the transactions_processed table totally every run. If I have an API query going on during this time when it's cleared and being regenerated, I would return bad data. Can you regenerate into a temp table and rename, or come up with another way? I can pause transactions for now when this is being regenerated, but that's kind of ghetto.
* masterchest-engine sql versioning - have a version table or a way for me to deduct the sql schema version....auto schema upgrades in masterchest-engine would be best... worst case, if blow away the DB on schema upgrades, if necessary, and regenerate...
* have a way for me to query the masterchest-engine version
* an abundance of magic numbers -- makes the code confusing to read. e.g. what does "If .Item(6) < 999998 Then" mean??? What is that 999998
lack of comments around these kinds of things. Also, things like "curtype = 1" -- maybe use enums instead? A future task I'm sure...I know you're busy getting Dex working (and my sqlite integration
)
* what timezone does masterchest-engine store -- we should probably force UTC time. Or, the timezone must be stored with it
* you have no indexes on any rows, columns of your database. This greatly can impact performance. Do you have plans to add indexes?
* from transactions_processed, how do I tell what kind of transaction it is (multi-sig, class A, etc)?? can you add this into the schema?
* also, for transactions_processed, does "VALUE" include the bonus amount for txns in the exodus period, or not?