Alexis Hernandez
35f1b3b3ac
server: Add the tpos_contracts table
6 years ago
Alexis Hernandez
1daa9ee3cc
server: Remove the TPoS addresses from the transaction_outputs table
6 years ago
Alexis Hernandez
4c7b05b48d
server: Add the CacheModule which loads the available caches
6 years ago
Alexis Hernandez
4f6ab522d4
server: Disable CSRFFilter
As there are no authenticated routes, CSRF protection can be disabled.
6 years ago
Alexis Hernandez
18f2260e80
server: Add the block_address_gcs table
6 years ago
Alexis Hernandez
be72834662
server: Allow to reverse the block headers ordering
6 years ago
Alexis Hernandez
10f1932902
server: Add endpoint "GET /v2/blocks/:blockhash/light-wallet-transactions"
6 years ago
Alexis Hernandez
d9c56e31e4
server: Update blocks.difficulty precision
6 years ago
Alexis Hernandez
2798b528ed
server: Add endpoint "GET /blocks/headers"
6 years ago
Alexis Hernandez
ae42e3cc9c
server: Update allowed hosts
6 years ago
Alexis Hernandez
750e2968b6
server: Add missing index to the transaction_inputs table
6 years ago
Alexis Hernandez
21399f3c99
server: Add extraction_method column to the blocks table
Defaults to PoW, a migration is required to set the correct values.
6 years ago
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