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 |