Alexis Hernandez
f7887cf3b1
server: Fill the address_transaction_details while synching the db
6 years ago
Alexis Hernandez
a8fb693018
server: Reuse the paginated query on the BlockPostgresDAO
The getFirstBlock and getLatestBlock methods use the paginated
query to get the results.
6 years ago
Alexis Hernandez
c72f458a9d
server: Allow to get paginated blocks from the BlockDataHandler
6 years ago
Alexis Hernandez
11e25da4a4
server: Add getByBlockhash method to the TransactionDataHandler ( #19 )
6 years ago
Alexis Hernandez
a0f0df9946
server: Improve the evolution schema ( #35 )
Add a foreign key on the transaction_inputs table to ensure
that an output has been referenced only once.
7 years ago
Alexis Hernandez
ee71562fb6
server: Add getUnspentOutputs method to the TransactionDataHandler ( #34 )
7 years ago
Alexis Hernandez
c594de3a14
server: Clean legacy code from TransactionDataHandler ( #34 )
7 years ago
Alexis Hernandez
ef0b7ba633
server: Mark output as spent while creating transactions ( #34 )
7 years ago
Alexis Hernandez
dee0f7e600
server: Update the database schema to support utxos ( #35 )
7 years ago
Alexis Hernandez
5cbf98caa0
server: Add foreign key to the next_blockhash ( #35 )
When the next block is deleted, the next_blockhash is
updated with a null value to avoid conflicts and improve
the database consistency.
7 years ago
Alexis Hernandez
28570f80f5
server: Remove legacy seeder tasks ( #38 )
The SQS seeder and the Poller seeder are removed, they weren't
adapted to the linear synchronization process and they are not
required anymore.
Also, all related classes and dependencies that where used by
these tasks were removed too.
7 years ago
Alexis Hernandez
d012bef430
server: Add the LedgerDataHandler ( #37 )
This is the initial piece for integrating the linear database
seeding.
7 years ago
Alexis Hernandez
9759bc4bb9
server: Complete fixing the tests after schema changes ( #35 )
It is very likely that this change has fixed #15 .
7 years ago
Alexis Hernandez
2eb9c010dd
server: Initial database redesign ( #35 )
- The evolutions compacted.
- Domain types created.
- Foreign keys added.
- Support for the P2WPKH address format added.
7 years ago
Alexis Hernandez
83bfd06645
server: Add getBy method to BalanceDataHandler ( #18 )
7 years ago
Alexis Hernandez
4355a0347f
server: Update the "GET /addresses/:address/transactions"
Now it returns the transaction values where the address was involved.
7 years ago
Alexis Hernandez
510b127d3c
server: Add support for ordering in "GET /addresses/:address/transactions"
7 years ago
Alexis Hernandez
0d5e37b040
server: Improve the ColumnNameResolver
In order to get deterministic results while retrieving
paginated results, the getUniqueColumnName method has been
introduced, when sorting by a non-unique column, we'll break
ties using the unique column.
7 years ago
Alexis Hernandez
ef862b9272
server: Allow to retrieve transactions for an address on TransactionDataHandler
This is a piece for #18 , we need to retrieve paginated transactions for a given
address.
NOTE: This commit doesn't include tests in order to work in the frontend
concurrently, tests will be included before the release.
7 years ago
Alexis Hernandez
b4ad16dd56
server: Create TransactionDataHandler trait
The trait is implemented by TransactionPostgresDataHandler and
TransactionPostgresDataHandler.
This is a piece for creating endpoints interacting with transactions
from the database instead of the xsn service.
7 years ago
Alexis Hernandez
313afb5cde
server: Remove corrupted balance logs
As #5 has been closed because the balances tables hasn't
been corrupted again, the logs are unnecessary now.
7 years ago
Alexis Hernandez
f10e0ad452
server: Fix for #12 avoid corrupting the previous_blockhash
7 years ago
Alexis Hernandez
45ae0eeba2
server: Fix for #11 avoid corrupting the next_blockhash
7 years ago
Alexis Hernandez
0317a4d933
server: Refactor DatabaseSeeder and BlockEventsProcessor
7 years ago
Alexis Hernandez
5023d78679
server: Exclude burn address from total supply
7 years ago
Alexis Hernandez
5ff45a0921
server: Minor updates to the seeding process
7 years ago
Alexis Hernandez
4d61427f6d
server: Add debug log to detect corrupted balances
The idea is to detect how the balances table is being corrupted,
when the actual bug is fixed, this will be removed.
7 years ago
Alexis Hernandez
e9eb79b813
server: Hide 0 balances from the balances API
It is unnecessary to be listing 0 balances on the richest addresses.
7 years ago
Alexis Hernandez
a485037201
server: Remove the available field from the balances table
Due to a bug, maintaining this field consistent has been tricky,
now the field is dropped and we use an index over a function instead.
7 years ago
Alexis Hernandez
b4120e284b
server: Update the BlockEventsProcessor flow
When a block is processed, in case it can't be fully retrieved from the
rpc server, the block is ignored.
When a block is processed, if there is an existing block having the same
height, it will be replaced by the new one.
This is a part for fixing the bug #6
7 years ago
Alexis Hernandez
7b8d12e4ed
server: Add getBy height on BlockDataHandler
7 years ago
Alexis Hernandez
b4442b3d98
server: Update playsonify to 1.2.0
7 years ago
Alexis Hernandez
61c6649584
server: Add unique constraint to the blocks table
This also changes the upsert method to insert on the BlockDataHandler,
this is piece for fixing the bug #6
7 years ago
Alexis Hernandez
7fdf67afb0
server: Delete block transactions on rechain events
This fixes a bug that corrupted the balances table because the
transactions related to a block weren't being deleted, hence, causing
wrong balances.
7 years ago
Alexis Hernandez
779ded1973
server: Add deleteBy blockhash method to TransactionPostgresDataHandler
7 years ago
Alexis Hernandez
1a59506179
server: Allow to specify ordering on GET /balances
7 years ago
Alexis Hernandez
c17dcb8930
server: Add FieldOrderingSQLInterpreter
7 years ago
Alexis Hernandez
444b7d37b3
server: Allow total and circulating supply to be missing
7 years ago
Alexis Hernandez
8665da9119
server: Update the BlockEventsProcessor to handle possible missing blocks
7 years ago
Alexis Hernandez
4e6f0f0ece
server: Remove unused code from BalanceDataHandler
7 years ago
Alexis Hernandez
cbdfaf06e9
server: Update Statistics to be loaded from StatisticsDataHandler
7 years ago
Alexis Hernandez
6f533d5616
server: Add getCirculatingSupply method to BalanceDataHandler
7 years ago
Alexis Hernandez
b43bf44737
server: Add endpoint GET /balances to get richest balances
7 years ago
Alexis Hernandez
fd075756c3
server: Add the BalanceDataHandler
7 years ago
Alexis Hernandez
e93ec20cdb
server: Update the SQSSeederTask to call the BlockSynchronizerTask
7 years ago
Alexis Hernandez
790adb398c
server: Add BlockSynchronizerTask
7 years ago
Alexis Hernandez
3a98e698c0
server: Rename hash to blockhash on blocks table
7 years ago
Alexis Hernandez
c1d3d267cd
server: Add BlockFutureDataHandler
7 years ago
Alexis Hernandez
8b862732c1
server: Add getFirstBlock method to the BlockDataHandler
7 years ago
Alexis Hernandez
439f9bccc8
server: Update the BlockEventsProcessor
Now it stores and rolls back the transactions and
balances related to the block event.
7 years ago