Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live release + libcore 4.2 #763

Open
wants to merge 260 commits into
base: develop
Choose a base branch
from
Open

Live release + libcore 4.2 #763

wants to merge 260 commits into from

Conversation

hzheng-ledger
Copy link
Contributor

No description provided.

alekece and others added 30 commits August 25, 2020 11:38
Apparently all advertised/signed fees are consumed in transaction and no
ratio of actual gas usage is used regarding fee computation
If we do not fetch the block data each time a transaction is
fetched (although saving HTTP calls), then :

- The blockHash of the transaction is empty, therefore no block_uid can
be computed from the tx.block
- The block_uid column of the transaction in the database therefore
stays `NULL`
- When querying the operations later, the LEFT JOIN of
cosmos_transactions with blocks will fail to find a block
- Final state : the queried operation has no "height" information

Having no "height" information is a problem because this is used by
Ledger Live to compute the count of confirmations for a given Operation.
Added a test on fetched operations block height during synchronization
to prevent regressions.
Since the sizes of the containers match, we can just overwrite the
transactions vector using the `begin` iterator in the transform (and no
erase necessary either, since the sizes match)
This fixes an issue where the "getSequence()" call was not up to date
when called more often than the full account synchronization.

The update is _not_ called on getAccountNumber() since this value is
immutable.
hzheng-ledger and others added 30 commits May 25, 2021 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants