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
28570f80f5
server: Remove legacy seeder tasks ( #38 )
The SQS seeder and the Poller seeder are removed, they weren't
adapted to the linear synchronization process and they are not
required anymore.
Also, all related classes and dependencies that where used by
these tasks were removed too.
7 years ago
Alexis Hernandez
d6a74dbb43
server: Add the PollerSynchronizerModule ( #38 )
This disables the SeederModule that uses SQS to sync the database.
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
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
510b127d3c
server: Add support for ordering in "GET /addresses/:address/transactions"
7 years ago
Alexis Hernandez
9d355650cf
server: Add endpoint "POST /transactions"
This is a part for #26 , it allows to push a hex-encoded
transaction to the network.
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
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
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
0f5687c5b9
server: Add endpoint: "GET /blocks/:query/raw"
7 years ago
Alexis Hernandez
c600980e83
server: Add endpoint: "GET /transactions/:txid/raw"
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
6e6ed7abbe
server: Add "GET /masternodes/:ip"
7 years ago
Alexis Hernandez
e76def63cb
server: Add getMasternode method to the XSNService
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
b5dc19ccdb
server: Update the logback config to rotate the log file daily
7 years ago
Alexis Hernandez
9fbe4f5abf
server: Update queue
7 years ago
Alexis Hernandez
da144b7205
server: Add endpoint "GET /masternodes"
7 years ago
Alexis Hernandez
1a59506179
server: Allow to specify ordering on GET /balances
7 years ago
Alexis Hernandez
6f2b9f8aee
server: Add FieldOrderingParser
7 years ago
Alexis Hernandez
521d3fa361
server: Remove unused code
7 years ago
Alexis Hernandez
b43bf44737
server: Add endpoint GET /balances to get richest balances
7 years ago
Alexis Hernandez
a8fbfa036c
server: Add the PaginatedQueryValidator
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
96c774c430
server: Add SeederModule
7 years ago
Alexis Hernandez
805a65a224
server: Add AmazonSQSAsyncModule
7 years ago
Alexis Hernandez
8eff288e33
server: Add SeederConfig
7 years ago
Alexis Hernandez
87ccd51257
server: Add the BlockPostgresDataHandler
7 years ago
Alexis Hernandez
9fadc240b8
server: Add DatabaseExecutionContext
7 years ago
Alexis Hernandez
035c2cc28f
server: Add config for the database
7 years ago
Alexis Hernandez
d29b4b2f1c
server: Add GET /health endpoint
7 years ago
Alexis Hernandez
41f29ad19c
server: Add GET /stats endpoint
7 years ago
Alexis Hernandez
eb2762e3ff
server: Add CORSFilter
This simplifies the development process and allow us to load the
application via http.
7 years ago
Alexis Hernandez
c44700dd06
server: Allow to retrieve the 10 latest blocks
7 years ago
Alexis Hernandez
a608fd4845
server: Add support for TPoS blocks
7 years ago
Alexis Hernandez
8ecc447f22
server: Add support for retrieving PoW blocks
7 years ago
Alexis Hernandez
9a34faa615
server: Add GET /blocks/:blockhash
7 years ago
Alexis Hernandez
8fd57f92f7
server: Add getBlock method to XSNService
7 years ago
Alexis Hernandez
3270f9274c
server: Add GET /addresses/:address
7 years ago
Alexis Hernandez
f070f7d2d7
server: Add getAddressBalance method to XSNService
7 years ago
Alexis Hernandez
34a6277d46
server: Add LoggingFilter
7 years ago
Alexis Hernandez
0f3d674368
server: Add GET /transactions/:txid
7 years ago