Oleksandr Brezhniev
9e40265226
Merge pull request #674 from hermeznetwork/feature/apiWithoutError
added checker for version in no route api
3 years ago
Mikelle
7f971fb72b
changed const declaration in api_test.go
3 years ago
Mikelle
e9b80d0c6d
Merge branch 'develop' into feature/apiWithoutError
# Conflicts:
# api/api.go
3 years ago
Danilo Pantani
2dba819696
Merge pull request #676 from hermeznetwork/feature/warnLogPriceUpdate
added checker and log.warn to updateMethodTypeStatic
3 years ago
Danilo Pantani
629c67a62e
Merge pull request #675 from hermeznetwork/feature/configChainId
added chainId to config API
3 years ago
Eduard S
bb71a94e22
Merge pull request #688 from hermeznetwork/feature/txsel-l1frozenqueue-acccreation
TxSel avoid L1CoordTx for L2Tx that have a L1UserTx in the frozen queue
3 years ago
arnau
6074f2d7fb
Merge pull request #683 from hermeznetwork/doc/api-and-sql-related
Add package level documentation for db, historydb, l2db, api, apitype…
3 years ago
arnaucube
6f1a44df02
TxSel avoid L1CoordTx for L2Tx that have a L1UserTx in the frozen queue
For the L2Txs of TransferToEthAddr & TransferToBJJ for a not-yet
existing accounts, in the TxSelector check if L2Tx receiver account will
be created by a L1UserFrozenTxs (in the next batch, the current frozen
queue). In that case, the L2Tx will be discarded at the current batch,
even if there is an AccountCreationAuth for the account, as there is a
L1UserTx in the frozen queue that will create the receiver Account. The
L2Tx is discarded to avoid the Coordinator creating a new
L1CoordinatorTx to create the receiver account, which will be also
created in the next batch from the L1UserFrozenTx, ending with the user
having 2 different accounts for the same TokenID.
The double account creation is supported by the Hermez zkRollup
specification, but it was decided to mitigate it at the TxSelector level
for the explained cases.
3 years ago
arnaubennassar
4c99640b8c
Add package level documentation for db, historydb, l2db and api/...
3 years ago
Danilo Pantani
3fedcb7023
Merge pull request #636 from hermeznetwork/feature/metric-package
instrumenting the application
3 years ago
Eduard S
3f643f022a
Merge pull request #677 from hermeznetwork/feature/fastsync-get-headerByNumber
Faster synchronization by fetching only block headers
3 years ago
Danilo Pantani
b8d339d568
Merge pull request #670 from hermeznetwork/fix/remove-release-os
fix the invalid goarch build
3 years ago
Mikelle
01ec1ca395
added test and move logic to api.NewAPI
3 years ago
Mikelle
561f491d53
added token symbol to UpdateMethodTypeStatic log
3 years ago
Pantani
9245247ee4
create a gin middleware to collect request metrics and export them to the Prometheus route
3 years ago
Eduard S
6c1c157bc3
Merge pull request #672 from hermeznetwork/feature/configurable-recommendedfee-strategy
Add configuration option to choose recommended fee strategy, and add …
3 years ago
arnaubennassar
f9ddf88c93
Add configuration option to choose recommended fee strategy, and add static strategy
3 years ago
Mikelle
4dc44e70c4
added checker for version in no route api
3 years ago
Mikelle
7b6dd0899e
added checker and log.warn to updateMethodTypeStatic
3 years ago
Mikelle
14ead3ddf1
added chainId to config API
3 years ago
Pantani
a1eea43443
fix the invalid goarch build and avoid calling the migration-pack each build
3 years ago
Oleksandr Brezhniev
2125812e90
Faster synchronization with usage of HeaderByNumber instead of BlockByNumber
3 years ago
Danilo Pantani
f07fd82822
Merge pull request #653 from hermeznetwork/feature/goreleaser-integration
Generating automatically releases with Goreleaser
3 years ago
arnau
d465d51e78
Merge pull request #667 from hermeznetwork/feature/documentpackages
Document synchronizer, node and coordinator
3 years ago
Eduard S
e23d0a07d2
Document synchronizer, node and coordinator
3 years ago
Pantani
6d84d143a2
Measure the server proof duration
3 years ago
Pantani
3b3d96e07c
create the metrics package for a better app instrumenting
3 years ago
Danilo Pantani
e9be904c2f
Merge pull request #656 from hermeznetwork/feature/license
add AGPLv3 License
3 years ago
Pantani
88b17cbe99
add release distribution with Goreleaser ( https://goreleaser.com )
3 years ago
Danilo Pantani
1ffe437538
Merge pull request #657 from hermeznetwork/feature/documentserveapi
Add minimum documentation of serveapi command
3 years ago
arnau
e2f9a1d7eb
Merge pull request #650 from hermeznetwork/fix/serveapi-flags
fix the application initialization flags
3 years ago
arnau
999dde5621
Merge pull request #662 from hermeznetwork/feature/improveSCinits
Bound the filter of init SC events by blocks
3 years ago
Eduard S
aa82efc868
Bound the filter of init SC events by blocks
When querying the init event for each smart contract, bound the search from
block genesis-24h to block genesis. Otherwise, this query in geth synced to
mainnet takes too long.
3 years ago
a_bennassar
2184084408
Merge pull request #659 from hermeznetwork/feature/move-api-subpackages
Move apitypes & stateapiupdater into api dir
3 years ago
arnaucube
206c8e6e8f
Move apitypes & stateapiupdater into api dir
3 years ago
Eduard S
c2c74e14f1
Merge pull request #655 from hermeznetwork/feature/api-versioning
Add API versioning
3 years ago
a_bennassar
80e20f3cf1
Merge pull request #658 from hermeznetwork/feature/update-sql-func
Add account_state view
3 years ago
arnaucube
d9741da43b
Add API versioning
3 years ago
Eduard S
8c51cfb3d2
Add minimum documentation of serveapi command
3 years ago
laisolizq
7b297c77da
Add account_state view
3 years ago
Pantani
9a863eadc4
add AGPLv3 License
3 years ago
Eduard S
d80e3a8988
Merge pull request #648 from hermeznetwork/feature/txsel-forgablepriority
Update TxSel selection to prioritize the forgable
3 years ago
arnaucube
2873ce875a
Update TxSel selection to prioritize the forgable
Previous to this commit, there were cases where being
len(nonForgableL2Txs)>maxL2Txs and nonForgableL2Txs have bigger fee than
forgableL2Txs, the forgableTxs where never forged, neither the
nonForgableTxs. Now, the TxSelector first forges the forgableTxs (which
are forgable for the initial state of the accounts (balances & nonces),
and then the nonForgableL2Txs, which may be unblocked once the forgable
ones have been processed.
3 years ago
Eduard S
10cfc91250
Merge pull request #651 from hermeznetwork/feature/total-txs-in-pool
API change names and add poolLoad, add maxFeeUSD
3 years ago
Eduard S
f6765f82bf
Merge pull request #654 from hermeznetwork/feature/api-pending-l1s
Add pending L1 txs to API
3 years ago
arnaubennassar
90126a03a2
API change names and add poolLoad, add maxFeeUSD
3 years ago
arnaubennassar
3fcec947b4
Add pending L1 txs to API
3 years ago
Pantani
dc198c35ae
fix import key command into the example script
3 years ago
Pantani
ae0858df3d
fix the serve api flags
3 years ago
arnau
334eecc99e
Merge pull request #645 from hermeznetwork/feature/newpolicy
Add config parameter ForgeOncePerSlotIfTxs
3 years ago