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
c289364e25
server: Update the nonce type from blocks table to bigint
6 years ago
Alexis Hernandez
80f27602f6
server: Add the address_transaction_details table
6 years ago
Alexis Hernandez
8bb3ff26e0
server: Disable address checks ( #45 )
In order to keep the database in sync, the address
checks are being disabled, this is a partial solution
to let the explorer continue working until the actual
validations are added.
6 years ago
Alexis Hernandez
6fd6db473b
server: Add the AMOUNT_TYPE domain to the evolution schema ( #35 )
7 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
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
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
cf86eb3672
server: Add address index to transaction_inputs and transaction_outputs
This is useful to retrieve transactions by address from the database,
part of #18 .
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
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
521d3fa361
server: Remove unused code
7 years ago
Alexis Hernandez
3a98e698c0
server: Rename hash to blockhash on blocks table
7 years ago
Alexis Hernandez
8173c64497
server: Add TransactionPostgresDataHandler
7 years ago
Alexis Hernandez
4bce1251d1
server: Add BalancePostgresDataHandler
7 years ago
Alexis Hernandez
87ccd51257
server: Add the BlockPostgresDataHandler
7 years ago