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
Alexis Hernandez
8173c64497
server: Add TransactionPostgresDataHandler
7 years ago
Alexis Hernandez
4bce1251d1
server: Add BalancePostgresDataHandler
7 years ago
Alexis Hernandez
02b03b22c8
server: Add BlockEventsProcessor
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