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
Alexis Hernandez
1a59506179
server: Allow to specify ordering on GET /balances
7 years ago
Alexis Hernandez
313562a0fb
server: Increase number of active connections on postgres tests
7 years ago
Alexis Hernandez
72991de5f7
server: Increase coverage on BalancePostgresDataHandlerSpec
7 years ago
Alexis Hernandez
521d3fa361
server: Remove unused code
7 years ago
Alexis Hernandez
8b862732c1
server: Add getFirstBlock method to the BlockDataHandler
7 years ago
Alexis Hernandez
8173c64497
server: Add TransactionPostgresDataHandler
7 years ago
Alexis Hernandez
4bce1251d1
server: Add BalancePostgresDataHandler
7 years ago
Alexis Hernandez
e3ce4a4c2d
server: Rename create method to upsert on BlockDataHandler
7 years ago
Alexis Hernandez
a4b2b6d9c5
server: Allow to retrieve the latest block
7 years ago
Alexis Hernandez
d076fe151e
server: Allow to delete blocks by hash
7 years ago
Alexis Hernandez
e3bf0b0ef4
server: Allow to retrieve blocks by hash
7 years ago
Alexis Hernandez
87ccd51257
server: Add the BlockPostgresDataHandler
7 years ago
Alexis Hernandez
6a481e5d94
server: Add PostgresDataHandlerSpec
7 years ago