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
6ed2b5d31e
server: Update "GET /addresses/:address" ( #18 )
Now it retrieves the address balance from the database
instead of the xsn server, this reduces the data because
now we get the balance only and the transactions are retrieved
with another endpoint.
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
c410771ed4
server: Run the BackwardsSynchronizerTask after replacing a block by height ( #30 )
7 years ago
Alexis Hernandez
b32bc45d01
server: Test "GET /addresses/:address/transactions" endpoint
7 years ago
Alexis Hernandez
79f5e67878
server: Test getBy method on TransactionPostgresDataHandlerSpec
7 years ago
Alexis Hernandez
5313e76738
server: Add sendRawTransaction method to XSNService
This is a part for #26 .
7 years ago
Alexis Hernandez
5a7fd8a81d
server: Add endpoint "GET /addresses/:address/utxos"
This is a part for #23 , it allows to retrieve the unspent
outputs for the given address.
7 years ago
Alexis Hernandez
41abe0e741
server: Add getUnspentOutputs method to XSNService
This is a part for #23 .
7 years ago
Alexis Hernandez
c3632db349
server: Disable PollingSeederModule on tests
7 years ago
Alexis Hernandez
f1bf820b75
server: Add endpoint "GET /addresses/:address/transactions"
This is a piece for #18 , it allow us to retrieve the transactions
for the given address.
NOTE: This commit doesn't include tests in order to work in the frontend
concurrently, tests will be included before the release.
7 years ago
Alexis Hernandez
3a8d3cb803
server: Use BlockOps on BlockEventsProcessor
7 years ago
Alexis Hernandez
faef6eadf7
server: Small fix to the BackwardsSynchronizerTask
When running the task, we replace a block when its height already exists,
this should help on the fix for #11 and #12 .
7 years ago
Alexis Hernandez
f10e0ad452
server: Fix for #12 avoid corrupting the previous_blockhash
7 years ago
Alexis Hernandez
45ae0eeba2
server: Fix for #11 avoid corrupting the next_blockhash
7 years ago
Alexis Hernandez
0317a4d933
server: Refactor DatabaseSeeder and BlockEventsProcessor
7 years ago
Alexis Hernandez
339fab1176
server: Make blocktime and time fields non-mandatory in rpc transactions
Sometimes the rpc server returns transaction with the blocktime and time
fields missing.
7 years ago
Alexis Hernandez
5023d78679
server: Exclude burn address from total supply
7 years ago
Alexis Hernandez
0f5687c5b9
server: Add endpoint: "GET /blocks/:query/raw"
7 years ago
Alexis Hernandez
def051cf1e
server: Add getRawBlock method to XSNService
7 years ago
Alexis Hernandez
c600980e83
server: Add endpoint: "GET /transactions/:txid/raw"
7 years ago
Alexis Hernandez
4e96219d77
server: Add getRawTransaction method to XSNService
7 years ago
Alexis Hernandez
6c56330f74
server: Add TODO to a test that might not be stable
7 years ago
Alexis Hernandez
15d8d8992b
server: Update "GET /blocks/:query"
Allows to find a block by blockhash or by block height.
7 years ago
Alexis Hernandez
4bed8492c0
server: Add getBlockhash method to XSNService
7 years ago
Alexis Hernandez
6e6ed7abbe
server: Add "GET /masternodes/:ip"
7 years ago
Alexis Hernandez
e76def63cb
server: Add getMasternode method to the XSNService
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
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
da144b7205
server: Add endpoint "GET /masternodes"
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
7cf2f5f372
server: Fix StatisticsControllerSpec
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
c4807c6a04
server: Fix StatisticsControllerSpec
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
cc8a271c3e
server: Add BalancesControllerSpec
7 years ago
Alexis Hernandez
72991de5f7
server: Increase coverage on BalancePostgresDataHandlerSpec
7 years ago