From: Damyan Ivanov Date: Thu, 4 Apr 2019 06:41:06 +0000 (+0300) Subject: JSON transaction parser: detect file-order stream and disable the early termination... X-Git-Tag: v0.9~16 X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=commitdiff_plain;h=0996c57ac91f80b69373dc287469a56259a57e03;hp=0996c57ac91f80b69373dc287469a56259a57e03 JSON transaction parser: detect file-order stream and disable the early termination logic the early termination logic is useful when transactions come in reverse chronological order -- newest first. seeing 50 known transactions seems like a good criteria for terminating the parsing before the whole stream is processed however, the JSON API seems to return transactions in file order -- oldest first (by time of creation, not 'date' field). in this order the newest (and thus unknown) transactions come last and the early termination logic needs to be disabled ---