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
788da62ec0
server: Fix failing test on BlockEventsProcessorSpec
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
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
99d28d12e6
server: Fix parsing the lastSeen field on the masternode
7 years ago
Alexis Hernandez
acc4ddba2d
server: Add getMasternodes method to XSNService
7 years ago
Alexis Hernandez
e16ee760bc
server: Don't require spent index on BlockEventsProcessor
7 years ago
Alexis Hernandez
1a59506179
server: Allow to specify ordering on GET /balances
7 years ago
Alexis Hernandez
c8480a90ff
server: Fix corrupting balances while adding repeated blocks
7 years ago
Alexis Hernandez
313562a0fb
server: Increase number of active connections on postgres tests
7 years ago
Alexis Hernandez
3f60fe7611
server: Add the number of masternodes to the statistics endpoint
7 years ago
Alexis Hernandez
8665da9119
server: Update the BlockEventsProcessor to handle possible missing blocks
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
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
Alexis Hernandez
6a481e5d94
server: Add PostgresDataHandlerSpec
7 years ago
Alexis Hernandez
9fadc240b8
server: Add DatabaseExecutionContext
7 years ago
Alexis Hernandez
490724f39b
server: Add getServerStatistics method to XSNService
7 years ago
Alexis Hernandez
9707e40038
server: Relax asm format on ScriptPubKey
7 years ago
Alexis Hernandez
1972ae8ae8
server: Add support for TPoS blocks with coinsplit
7 years ago
Alexis Hernandez
c44700dd06
server: Allow to retrieve the 10 latest blocks
7 years ago
Alexis Hernandez
1b614d2807
server: Support multiple inputs on transactions
7 years ago
Alexis Hernandez
bf722ec212
server: Refactor tests to load transactions and blocks from files
7 years ago
Alexis Hernandez
5094bb35e4
server: Retrieve transaction list while retrieving an address
7 years ago
Alexis Hernandez
bd03d9b902
server: Move AddressBalance model to rpc package
7 years ago
Alexis Hernandez
636c2b509e
server: Move TransactionVOUT to rpc package
7 years ago
Alexis Hernandez
65af722947
server: Move Transaction model to rpc package
7 years ago
Alexis Hernandez
850b8192ed
server: Move Block model to rpc package
7 years ago
Alexis Hernandez
a608fd4845
server: Add support for TPoS blocks
7 years ago
Alexis Hernandez
9fe9d91709
server: Add getTPoSAddresses method to ScriptPubKey class
7 years ago
Alexis Hernandez
735a19ea27
server: Update Block model to support TPoS blocks
7 years ago
Alexis Hernandez
d2c75dafb1
server: Fix bug related to RPC Server 1.0.3
The server was returning status 200 for most results and it
is now returning 500, like when a transaction wasn't found.
7 years ago
Alexis Hernandez
f2beb40fa2
server: Update AddressBalance to use BigDecimal values instead of BigInt
7 years ago
Alexis Hernandez
8fd57f92f7
server: Add getBlock method to XSNService
7 years ago
Alexis Hernandez
8dd032dacd
server: Add getTransactionCount method to XSNService
7 years ago
Alexis Hernandez
f070f7d2d7
server: Add getAddressBalance method to XSNService
7 years ago
Alexis Hernandez
5fe1fe63ec
server: Update XSNService to return a Transaction
7 years ago