Alexis Hernandez
97254aae11
server: Remove unnecessary endpoint "POST /transactions/latest"
6 years ago
Alexis Hernandez
c9d7775e35
server: Update sentry.properties
6 years ago
Alexis Hernandez
a3aa33b809
server: Update maintenance endpoint to receive a query
6 years ago
Alexis Hernandez
54a61a11a8
server: Prepare "GET /maintenance" endpoint
This is useful for running occasional maintenance tasks.
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
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
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
e9116b3544
server: Add endpoint - GET /v2/balances
Returns the highest balances allowing to paginate from highest to smallest.
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
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
cf420b0224
server: Allow to override the genesis block with environment variable
6 years ago
Adinael Perez Ruelas
117a66869b
server: Add the genesis block to the config file
6 years ago
Alexis Hernandez
c289364e25
server: Update the nonce type from blocks table to bigint
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
80f27602f6
server: Add the address_transaction_details table
6 years ago
Alexis Hernandez
83b2cf7fa7
server: Fix the sentry package properties
6 years ago
Alexis Hernandez
875be83564
server: Set up sentry-logback
6 years ago
Rishabh Chakrabarti
35deff6b5e
server: Add root-cause-exception-first logging to logback.xml ( #57 )
This change helps identify the root cause in the stack trace of exceptions.
6 years ago
Alexis Hernandez
b4a4577186
server: Add "GET /blocks/:blockhash/transactions" ( #19 )
6 years ago
Alexis Hernandez
4280ecc27d
server: Allow CORS from https://cloud.stakenet.io
6 years ago
Alexis Hernandez
8bb3ff26e0
server: Disable address checks ( #45 )
In order to keep the database in sync, the address
checks are being disabled, this is a partial solution
to let the explorer continue working until the actual
validations are added.
6 years ago
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