Alexis Hernandez
a3aa33b809
server: Update maintenance endpoint to receive a query
6 years ago
Alexis Hernandez
1c0c271864
server: Remove temporal shift while computing supplies
6 years ago
Alexis Hernandez
e464080a76
server: Don't ignore errors while loading transaction inputs
6 years ago
Alexis Hernandez
54a61a11a8
server: Prepare "GET /maintenance" endpoint
This is useful for running occasional maintenance tasks.
6 years ago
jonsadev
7599230784
server: Add documentation to a probable issue when running sbt test
6 years ago
Alexis Hernandez
a9374bd21f
server: Update postgres indexes
6 years ago
Alexis Hernandez
c6326dfe02
server: Add not null constraint to the transactions.index
6 years ago
Alexis Hernandez
7c7abaf7ac
server: Avoid transaction ordering issues while deleting blocks
There are certain transactions that spend inputs from created on
the same block, these transaction with dependencies should be deleted
before the transactions that they depend on, otherwise, we get
constraint violation errors.
6 years ago
Alexis Hernandez
a9aa182091
server: Store the transaction index while synchronizing the blocks
6 years ago
Alexis Hernandez
585978fc17
server: Add index field to transactions table
The transaction order from the xsnd must be recoverable
when we store the transactions in the database.
6 years ago
Alexis Hernandez
fe9d2985f6
server: Add endpoint - GET /v2/blocks/:blockhash/transactions
6 years ago
Alexis Hernandez
df8bc2e9ec
server: Add method to get scrolled transactions by blockhash
6 years ago
Alexis Hernandez
26ad85160f
server: Rename /addresses/:address/lightWalletTransactions to /v2/addresses/:address/transactions
6 years ago
Alexis Hernandez
95f16d79e8
server: Rename getLatestBy to getBy on TransactionDataHandler
The method now allows an ordering condition (asc, desc) to choose
the result ordering.
6 years ago
Alexis Hernandez
e030480a7c
server: Allow to reverse the order of TransactionPostgresDAO#getLatestBy
6 years ago
Alexis Hernandez
e9116b3544
server: Add endpoint - GET /v2/balances
Returns the highest balances allowing to paginate from highest to smallest.
6 years ago
Alexis Hernandez
f1cc9103ea
server: Add getHighestBalances method to the BalanceDataHandler
6 years ago
Alexis Hernandez
8d50af57b6
server: Add test to TransactionPostgresDataHandlerSpec
6 years ago
Alexis Hernandez
36e05516fb
server: Wrap the light wallet transactions response in a data field
6 years ago
Alexis Hernandez
2db4f9f513
server: Simplify the light wallet transactions retrieval query
6 years ago
Alexis Hernandez
38ab0e1803
server: Add the value to the LightWalletTransaction.Input
6 years ago
Alexis Hernandez
a03e4401ca
server: Update endpoint - GET /addresses/:address/lightWalletTransactions
The pagination is updated to check the latest seen transaction instead of its time,
this avoids hiding items when there are ties on the time.
6 years ago
Alexis Hernandez
4feee274ec
server: Add endpoint - GET /addresses/:address/lightWalletTransactions
6 years ago
Alexis Hernandez
639eb62efd
server: Add chimney dependency
6 years ago
Alexis Hernandez
6e54e9f870
server: Add keyset-based method for retrieving address transactions
6 years ago
Alexis Hernandez
b8783b961d
server: Enable test on AddressesControllerSpec
6 years ago
Alexis Hernandez
e1a96c2c61
server: Speed up the statistics computation from the database
6 years ago
Alexis Hernandez
80c7460b18
server: Precompute the available coins
In order to speed up the available coins retrieval,
the aggregated_amounts table is created, here we store
the total available coins which can be retrieved fast.
6 years ago
Alexis Hernandez
dc71ce8d23
server: Add allowed hosts
6 years ago
Alexis Hernandez
b2aaae4d4d
server: Be resilient while loading a transaction
For loading a transaction, we need to make several calls to
the RPC API for retrieving the inputs, when the server gets
overloaded by this, we try to get the inputs sequentially.
6 years ago
Alexis Hernandez
f348eaf86f
server: Enable constraints on the Address model
6 years ago
Alexis Hernandez
c8b71046a3
server: Be resilient while loading a batch of transactions
Instead of failing to load a batch of transactions, we try to load
them sequencially to avoid overloading the RPC API.
This allows a smoother synchronization process.
6 years ago
Alexis Hernandez
479eaca09c
server: Handle XSNWorkQueueDepthExceeded when the response is not a json
When the RPC API returns a non-json response, the XSNWorkQueueDepthExceeded
error can be derived.
6 years ago
Alexis Hernandez
f4738baef7
server: Update playsonify to 2.0.0
6 years ago
Alexis Hernandez
e20d12cd54
server: Add XSNWorkQueueDepthExceeded error
Now, when the XSN RPC API returns the "Work Queue Depth Exceeded" error,
it will be mapped to the XSNWorkQueueDepthExceeded error.
6 years ago
Alexis Hernandez
1ec1629a19
server: Update the endpoint for retrieving latest transactions
6 years ago
Adinael Perez Ruelas
bcdbf1cd0f
Server: fix the getLatestTransactionBy method
when sending an empty list
added the tests for sending an empty list and retrieving valid data
6 years ago
Adinael Perez Ruelas
8c805a95d3
Server: Optimized the getBy and countBy methods
changing the transaction_inputs and transaction_outputs tables for address_transaction_details table which is indexed
6 years ago
Alexis Hernandez
cf420b0224
server: Allow to override the genesis block with environment variable
6 years ago
Alexis Hernandez
449579dfce
server: Update postgres driver to 42.2.5
6 years ago
Adinael Perez Ruelas
ded2c47841
server: Load the genesis block from the config file
6 years ago
Adinael Perez Ruelas
117a66869b
server: Add the genesis block to the config file
6 years ago
Alexis Hernandez
fa829936e4
server: Fix log messages on XSNService
6 years ago
Alexis Hernandez
418f2fd4fa
server: Update the nonce from the Block model to Long
6 years ago
Alexis Hernandez
c289364e25
server: Update the nonce type from blocks table to bigint
6 years ago
Alexis Hernandez
e66da34260
server: Remove 6k from the supplies (temporal fix)
It looks like the supplies are not being computed correctly,
this temporal fix allow us to have an accurate number while
having time to investigate the issue.
6 years ago
Alexis Hernandez
a4563a5dc5
server: Add dev.stakenet.io to the CORS rules
6 years ago
Alexis Hernandez
d4acc18d9f
server: Add endpoint "POST /transactions/latest"
This retrieves the latest transaction id for the given addresses.
6 years ago
Alexis Hernandez
65f94b1436
server: Add getLatestTransactionBy method to the TransactionDataHandler
The method returns the latest transaction id for each of the given addresses.
6 years ago
Alexis Hernandez
f7887cf3b1
server: Fill the address_transaction_details while synching the db
6 years ago