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
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
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
ded2c47841
server: Load the genesis block from the config file
6 years ago
Alexis Hernandez
fa829936e4
server: Fix log messages on XSNService
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
b4a4577186
server: Add "GET /blocks/:blockhash/transactions" ( #19 )
6 years ago
Alexis Hernandez
6379c4e0bf
Revert "server: Hardcode previous supplies ( #47 )"
This reverts commit 249589b8709170eba41dc2199fdfef470f87cb11.
6 years ago
Alexis Hernandez
41ea8f776a
server: Hardcode previous supplies ( #47 )
Until #47 is fixed, we'll display the previous supplies
to avoid displaying any possible big inconsistencies.
6 years ago
Alexis Hernandez
cd5fadc472
server: Update "GET /addresses/:address/utxos" ( #34 )
Previously, the endpoint was retrieving the information from
the xsn service, now it is loaded from the database.
7 years ago
Alexis Hernandez
03ed7a694b
server: Add the LedgerSynchronizerService ( #37 )
This is a simplified version of the BlockEventProcessor, it handles
the synchronization between the xsn and our ledger database, it also
takes care of a lot of corner cases to keep the synchronization process
flexible enough and linear.
7 years ago
Alexis Hernandez
d338ff9fad
server: Add support for storing the genesis block ( #39 )
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
41abe0e741
server: Add getUnspentOutputs method to XSNService
This is a part for #23 .
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
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
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
b4442b3d98
server: Update playsonify to 1.2.0
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
a43435c4c3
server: Move getTransaction method from BlockEventsProcessor to TransactionService
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
3f60fe7611
server: Add the number of masternodes to the statistics endpoint
7 years ago
Alexis Hernandez
cbdfaf06e9
server: Update Statistics to be loaded from StatisticsDataHandler
7 years ago
Alexis Hernandez
44e19e8dc5
server: Include circulatingSupply on statistics
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
41f29ad19c
server: Add GET /stats endpoint
7 years ago
Alexis Hernandez
490724f39b
server: Add getServerStatistics method to XSNService
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
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