laisolizq
b3b23473b6
Add til api test first commit
4 years ago
laisolizq
4aa686797d
Merge pull request #284 from hermeznetwork/feature/api-db-test-til-tx
HistoryDB TXs til test
4 years ago
a_bennassar
e0a4b656fe
Merge pull request #279 from hermeznetwork/feature/l2db-test-til
Add til test l2db
4 years ago
ToniRamirezM
93d67ff699
HistoryDB TXs til test
4 years ago
laisolizq
1925110fda
Add til test l2db
4 years ago
a_bennassar
f5c92418f2
Merge pull request #280 from hermeznetwork/feature/integration15
Add Sync stats, and report them in DebugAPI
4 years ago
Eduard S
6c0d48f4a2
Add Sync stats, and report them in DebugAPI
4 years ago
a_bennassar
7294d766cd
Merge pull request #278 from hermeznetwork/feature/integration14
Test synchronizer reorg
4 years ago
Eduard S
457ff94bfa
Test synchronizer reorg
4 years ago
arnau
adedd77956
Merge pull request #277 from hermeznetwork/feature/integration13
Fix exit table, set delayed_withdrawn in exits
4 years ago
Eduard S
e731b79e96
Fix exit table, set delayed_withdrawn in exits
- In exit table, `instant_withdrawn`, `delayed_withdraw_request`, and
`delayed_withdrawn` were referencing batch_num. But these actions happen
outside a batch, so they should reference a block_num.
- Process delayed withdrawns:
- In Synchronizer, first match a Rollup delayed withdrawn request, with the
WDelayer deposit (via TxHash), and store the owner and token associated
with the delayed withdrawn.
- In HistoryDB: store the owner and token of a delayed withdrawal request
in the exit_tree, and set delayed_withdrawn when the withdraw is done in
the WDelayer.
- Update dependency of sqlx to master
- Last release of sqlx is from 2018 October, and it doesn't support
`NamedQuery` with a slice of structs, which is used in this commit.
4 years ago
arnau
8cc165f562
Merge pull request #275 from hermeznetwork/feature/api-db-tests-til
Feature/api db tests til
4 years ago
Arnau B
bed25d424a
Use til for batches and blocks at historydb
4 years ago
a_bennassar
623c2e5ace
Merge pull request #274 from hermeznetwork/feature/swagger-review
Swagger review
4 years ago
Eduard S
b5c5b49fb3
Merge pull request #276 from hermeznetwork/feature/statedb-accounts-root-js-comp
Cmptbility test for Root StateDB Accounts tree
4 years ago
ToniRamirezM
6919b561a5
Swagger Review
Swagger Review
4 years ago
arnaucube
a9f112c4ce
Cmptbility test for Root StateDB Accounts tree
Checked with commonjs version:
c8414bd205
4 years ago
Eduard S
3a94363daf
Merge pull request #272 from hermeznetwork/feature/update-account-hash
Update Account Hash comp to match js version
4 years ago
arnaucube
def6f46d75
Update Account Hash comp to match js version
4 years ago
Toni Ramírez
37b82604da
Merge pull request #273 from hermeznetwork/feature/api-test
API state endpoint test
4 years ago
laisolizq
43e9bee9db
API state endpoint test
4 years ago
Toni Ramírez
6ec7a0b55d
Merge pull request #271 from hermeznetwork/feature/api-state-fee
API State RecommendedFee
4 years ago
laisolizq
9edf9d2168
API State RecommendedFee
4 years ago
a_bennassar
e8148e66ff
Merge pull request #269 from hermeznetwork/feature/integration12
Process withdrawals in HistoryDB, test withdrawals and vars in sync
4 years ago
Eduard S
9f5af0aa07
Process withdrawals in HistoryDB, test withdrawals and vars in sync
4 years ago
a_bennassar
a1b9720e77
Merge pull request #270 from hermeznetwork/feature/api-state-metrics
API State Metrics
4 years ago
ToniRamirezM
55a78fbd72
API State Metrics
4 years ago
Eduard S
8190755d49
Merge pull request #268 from hermeznetwork/feature/wrapped-in-struct
Refactor api pagination
4 years ago
a_bennassar
a473070f65
Merge pull request #267 from hermeznetwork/feature/api-state
API add get state
4 years ago
laisolizq
cc6446e019
API add get state
4 years ago
Arnau B
d2e9196fba
Refactor api pagination
4 years ago
Eduard S
a4886c99ef
Merge pull request #265 from hermeznetwork/feature/zkinputs1
StateDB group Fee txs and ZKInputs gen of Fee txs & Update tx bytes parsers methods
4 years ago
arnaucube
900494fd8e
StateDB group Fee txs and ZKInputs gen of Fee txs
4 years ago
arnaucube
fac8577bad
Update tx bytes parsers methods
4 years ago
Eduard S
220fd992c5
Merge pull request #263 from hermeznetwork/feature/wrapped-in-struct
Put api DBs into struct
4 years ago
arnau
4a29cafcb7
Merge pull request #264 from hermeznetwork/feature/integration11
Add DebugAPI to Node, fix StateDB
4 years ago
Eduard S
5b6639a947
Add DebugAPI to Node, fix StateDB
- Allow starting the DebugAPI from the node via config
- In StateDB:
- Make checkpoints when ProcessTxs() succeeds
- Remove extra hardcoded `statedb` path that was redundant
- Replace hardcoded `[:4]` by `[:]` when parsing idx, which failed because
idx is 6 bytes length now.
- Extra: In node, use waitgroup instead of `stoppedXXX` channels to wait for
syncrhonizer goroutines to finish.
4 years ago
Arnau B
1112ded933
Put api DBs into struct
4 years ago
arnau
fd9b247120
Merge pull request #261 from hermeznetwork/feature/til-extra
Move logic to extend til blocks to til
4 years ago
Toni Ramírez
f662beb2ea
Merge pull request #262 from hermeznetwork/feature/api-checks
ItemID to uint64 & check timestamp
4 years ago
laisolizq
22f0a45118
ItemID to uint64 & check timestamp
4 years ago
a_bennassar
3591e3c2a2
Merge pull request #259 from hermeznetwork/feature/api-account
Account API
4 years ago
ToniRamirezM
b840ceb57a
Account API
4 years ago
Eduard S
5ebf46e045
Move logic to extend til blocks to til
Previously, the synchronizer test was extending the output from til to
precalculate many fields to compare it with the synchronizer and BD output.
Since this is useful outside of the syncrhonizer testing: move this
functionality to til via a function that extends the output
(til.Context.FillBlocksExtra).
Also, add new functionality: calculate fee idxs dynamically by setting a user
name, and calculate collected fees.
4 years ago
Eduard S
e8aabab2de
Merge pull request #255 from hermeznetwork/feature/zkinputs0
ZKInputs update:
4 years ago
a_bennassar
1a9c96a720
Merge pull request #251 from hermeznetwork/feature/api-slots
API add slots endpoints
4 years ago
laisolizq
5012b82914
API add slots endpoints
4 years ago
laisolizq
651572cbf3
Merge pull request #260 from hermeznetwork/feature/api-fee-check
Check feeAmount overflow in API
4 years ago
ToniRamirezM
f90f14d0c1
Check feeAmount overflow in API
4 years ago
a_bennassar
9ab50135d7
Merge pull request #254 from hermeznetwork/feature/integration10
Update Synchronizer (node) implementation
4 years ago