Alexis Hernandez
5d1b3662c0
server: Attach the filter while retrieving block headers
6 years ago
Alexis Hernandez
52ae52e3c4
server: Store the block filter while synchronizing the ledger
6 years ago
Alexis Hernandez
c921d73415
server: Update classes related to the ledger sync process to use the Block.HasTransactions model
6 years ago
Alexis Hernandez
aef41d5f8e
server: Split the persisted transaction model
There are two models now, the one having inputs/outputs
and the one without them.
6 years ago
Alexis Hernandez
29b8b583ba
server: Move the HexString model to the values package
6 years ago
Alexis Hernandez
33fcda6ef3
server: Move the Height value to the values package
6 years ago
Alexis Hernandez
de64af5b9b
server: Move the Blockhash value to the values package
6 years ago
Alexis Hernandez
a1737b9710
server: Move the Address value to the values package
6 years ago
Alexis Hernandez
685b54b576
server: Move the Balance model to the persisted package
6 years ago
Alexis Hernandez
b7f91b7ce4
server: Move the Transaction model to the persisted package
6 years ago
Alexis Hernandez
2dd9b4837a
server: Update the data package to use the Block from the persisted package
6 years ago
Alexis Hernandez
668153d6c4
server: Split the TransactionPostgresDAO into several files
6 years ago
Alexis Hernandez
447e31e55c
server: Insert transaction batch while synchronizing the ledger
6 years ago
Alexis Hernandez
72b66c0768
server: Refactor the TransactionPostgresDataHandlerSpec
6 years ago
Alexis Hernandez
97254aae11
server: Remove unnecessary endpoint "POST /transactions/latest"
6 years ago
Alexis Hernandez
8f0645b30a
server: Batch update while spending outputs on TransactionPostgresDAO
6 years ago
Alexis Hernandez
1d3e843254
server: Update endpoint "GET /v2/addresses/:address/transactions"
The inputs and outputs are now retrieved from the database, this makes
calls more reliable.
6 years ago
Alexis Hernandez
1c0c271864
server: Remove temporal shift while computing supplies
6 years ago
Alexis Hernandez
a9aa182091
server: Store the transaction index while synchronizing the blocks
6 years ago
Alexis Hernandez
95f16d79e8
server: Rename getLatestBy to getBy on TransactionDataHandler
The method now allows an ordering condition (asc, desc) to choose
the result ordering.
6 years ago
Alexis Hernandez
f1cc9103ea
server: Add getHighestBalances method to the BalanceDataHandler
6 years ago
Alexis Hernandez
8d50af57b6
server: Add test to TransactionPostgresDataHandlerSpec
6 years ago
Alexis Hernandez
a03e4401ca
server: Update endpoint - GET /addresses/:address/lightWalletTransactions
The pagination is updated to check the latest seen transaction instead of its time,
this avoids hiding items when there are ties on the time.
6 years ago
Alexis Hernandez
6e54e9f870
server: Add keyset-based method for retrieving address transactions
6 years ago
Alexis Hernandez
e1a96c2c61
server: Speed up the statistics computation from the database
6 years ago
Alexis Hernandez
80c7460b18
server: Precompute the available coins
In order to speed up the available coins retrieval,
the aggregated_amounts table is created, here we store
the total available coins which can be retrieved fast.
6 years ago
Alexis Hernandez
f4738baef7
server: Update playsonify to 2.0.0
6 years ago
Adinael Perez Ruelas
bcdbf1cd0f
Server: fix the getLatestTransactionBy method
when sending an empty list
added the tests for sending an empty list and retrieving valid data
6 years ago
Alexis Hernandez
65f94b1436
server: Add getLatestTransactionBy method to the TransactionDataHandler
The method returns the latest transaction id for each of the given addresses.
6 years ago
Alexis Hernandez
f7887cf3b1
server: Fill the address_transaction_details while synching the db
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
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
d012bef430
server: Add the LedgerDataHandler ( #37 )
This is the initial piece for integrating the linear database
seeding.
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
79f5e67878
server: Test getBy method on TransactionPostgresDataHandlerSpec
7 years ago
Alexis Hernandez
5023d78679
server: Exclude burn address from total supply
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
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
779ded1973
server: Add deleteBy blockhash method to TransactionPostgresDataHandler
7 years ago