Alexis Hernandez
5527b545b6
server: Add lite-version config
Enabling the lite-version allows to prune block details
to allow syncing fast until what the light wallet needs.
6 years ago
Alexis Hernandez
e91de5b6de
server: Fix bug that corrupted the transaction outputs
For some reason, storing a list on an array column gets the row
corrupted.
6 years ago
Alexis Hernandez
46779c9db9
server: Discard 0-value outputs while building a persisted transaction
6 years ago
Alexis Hernandez
149601dda7
server: Allow storing empty addresses on transaction inputs/outputs
6 years ago
Alexis Hernandez
87b345dd76
server: Refactor the transaction models to support multisig transactions
This refactor changes the input/output model from transactions to store
the possibly empty address list, which allows to deal with certain
transactions on bitcoin as well as with multisig transactions.
6 years ago
Alexis Hernandez
6961c764f7
server: Refactor the TransactionCollectorService
6 years ago
Alexis Hernandez
092f3b7b94
server: Add estimateSmartFee method to the XSNService
6 years ago
Alexis Hernandez
1185c799ba
server: Use the TransactionCollectorService on the LedgerSynchronizerService
6 years ago
Alexis Hernandez
9fc35c16ce
server: Add the TransactionCollectorService
6 years ago
Alexis Hernandez
d670d13850
server: Add getOutput method to the TransactionDataHandler
6 years ago
Alexis Hernandez
277abf922b
server: Use the validators in the service package
6 years ago
Alexis Hernandez
8a9ce8179b
server: Use the TransactionIdValidator on the TransactionService
6 years ago
Alexis Hernandez
a723a6501c
server: Extract the BlockValidator from the BlockLogic
6 years ago
Alexis Hernandez
a74e7cd714
server: Use the AddressValidator on the TransactionService
6 years ago
Alexis Hernandez
8c3a0cb3e6
server: Add the TPoSContractDataHandler
6 years ago
Alexis Hernandez
887af0ff56
server: Synchronize the TPoS contracts
- A TPoS contract is created when the transaction is synchronized.
- A TPoS contract is deleted when the transaction is rolled back.
- A TPoS contract is closed when the collateral output is spent.
- A TPoS contract is enabled when the collateral output gets unspent.
6 years ago
Alexis Hernandez
80f02664e5
server: Update the persisted Transaction model
- Allow mapping from rpc transaction with values only
- While mapping from rpc transactions, return the TPoS contract if there is one.
6 years ago
Alexis Hernandez
9d2edf8314
server: Remove the TPoS addresses from the Transaction.Output
The addresses are useless and the whole contract will be stored instead.
6 years ago
Alexis Hernandez
4af9a6cac4
server: Remove TPoS contract logic from the ScriptPubKey model
6 years ago
Alexis Hernandez
c6800a1fc7
server: Add the TPoSContract model
6 years ago
Alexis Hernandez
bdbaa415b5
server: Add isTPoSContract method to the XSNService
The method verifies whether a transaction is a TPoS contract.
6 years ago
Alexis Hernandez
b9ee34d97d
server: BlockService uses the cache for loading headers
6 years ago
Alexis Hernandez
5d1b3662c0
server: Attach the filter while retrieving block headers
6 years ago
Alexis Hernandez
52ae52e3c4
server: Store the block filter while synchronizing the ledger
6 years ago
Alexis Hernandez
8e203c9fb6
server: Handle empty set on GolombEncoding
6 years ago
Alexis Hernandez
8c0f92a07a
server: Update the GolombEncoding to use Set and SortedSet
6 years ago
Alexis Hernandez
aeeb7f5586
server: Update the GolombCodedSet to hold the hex encoded filter
6 years ago
Alexis Hernandez
2f3d2b0fae
server: Allow to derive a SipHashKey from a Blockhash
6 years ago
Alexis Hernandez
f6f3288880
server: Add the GolombEncoding
6 years ago
Alexis Hernandez
628300f9d6
server: Add the gcs SipHashKey
6 years ago
Alexis Hernandez
be72834662
server: Allow to reverse the block headers ordering
6 years ago
Alexis Hernandez
1b359f7585
server: Extract the OrderingConditionParser from the TransactionService
6 years ago
Alexis Hernandez
10f1932902
server: Add endpoint "GET /v2/blocks/:blockhash/light-wallet-transactions"
6 years ago
Alexis Hernandez
ff85797565
server: Refactor the TransactionVIN into a typed alternative
Now we are able to use types to detect when a TransactionVIN has the
cached values.
6 years ago
Alexis Hernandez
aa05af72ac
server: Return the txid after pushing a transaction to the network
6 years ago
Alexis Hernandez
c921d73415
server: Update classes related to the ledger sync process to use the Block.HasTransactions model
6 years ago
Alexis Hernandez
485faea74b
server: Fix AddressesControllerSpec
6 years ago
Alexis Hernandez
9dd24a4212
server: Update Address format to allow bitcoin addresses
6 years ago
Alexis Hernandez
2798b528ed
server: Add endpoint "GET /blocks/headers"
6 years ago
Alexis Hernandez
a926191a77
server: Persist the block extraction method while synchronizing the blocks
6 years ago
Alexis Hernandez
469c241931
server: Extract the BlockExtractionMethod from the persisted block
6 years ago
Alexis Hernandez
aef41d5f8e
server: Split the persisted transaction model
There are two models now, the one having inputs/outputs
and the one without them.
6 years ago
Alexis Hernandez
347a4d6ca5
server: Move the TransactionId value to the values package
6 years ago
Alexis Hernandez
6dd7b032b1
server: Move the Size value to the values package
6 years ago
Alexis Hernandez
f67d7831f0
server: Move the IPAddress value to the values package
6 years ago
Alexis Hernandez
29b8b583ba
server: Move the HexString model to the values package
6 years ago
Alexis Hernandez
33fcda6ef3
server: Move the Height value to the values package
6 years ago
Alexis Hernandez
9c10ae154d
server: Move the Confirmations value to the values package
6 years ago
Alexis Hernandez
de64af5b9b
server: Move the Blockhash value to the values package
6 years ago
Alexis Hernandez
a1737b9710
server: Move the Address value to the values package
6 years ago