Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants