Eduard S
7305a8d7f1
Merge pull request #615 from hermeznetwork/fix/l2txs-all-tonull
API doesnt accept pool txs without to
3 years ago
arnaubennassar
81690039da
API doesnt accept pool txs without to
3 years ago
Eduard S
661da0d53e
Merge pull request #619 from hermeznetwork/fix/floor-float40-helper
Fix NewFloat40Floor helper method
3 years ago
arnau
d0ace0773d
Merge pull request #616 from hermeznetwork/fix/typos-and-lint
fix some code typos
3 years ago
arnaucube
4fd757a03c
Fix NewFloat40Floor helper method
3 years ago
arnau
1778b08043
Merge pull request #618 from hermeznetwork/fix/poolL2-signature
Fix tx signature when toEthAddr starts with 0x0
3 years ago
arnaubennassar
dcd40f1943
Fix tx signature when toEthAddr starts with 0x0
3 years ago
Danilo Pantani
7833cb11de
fix some code and comment typos
3 years ago
Danilo Pantani
d361abb8cd
Add the config option to forge batch when the coordinator we are not the auction winner and reach the slot deadline
3 years ago
Eduard S
9e96bc89f0
Merge pull request #613 from hermeznetwork/fix/zkinputs-ISExitRoot-L1CoordTxs
Fix ZKInputs.ISExitRoot for case of L1CoordTxs
3 years ago
arnaucube
7bc83d7f70
Fix ZKInputs.ISExitRoot for case of L1CoordTxs
For the cases when there are Exit L1UserTxs and also there are
L1CoordinatorTxs, the ISExitRoot should have the expected value (!=0)
for the L1CoordinatorTxs slots.
3 years ago
Eduard S
6bf8584a82
Merge pull request #612 from hermeznetwork/fix/txselector-unselectedtx-nonce
Fix TxSel for unselected tx update internal Nonce
3 years ago
arnaucube
18e9e437da
Fix TxSel for unselected tx update internal Nonce
Fix TxSelector for unselected tx update internal Nonce.
Also updated TxSelector config parameter.
3 years ago
Eduard S
e4343a73ad
Merge pull request #610 from hermeznetwork/feature/float40-floor
Add NewFloor40Floor helper method
3 years ago
arnau
59558e5a4b
Merge pull request #609 from hermeznetwork/feature/wipestatedb
Wipe StateDB in cli command wipesql
3 years ago
arnaucube
dfd49164f4
Add NewFloor40Floor helper method
Also added tracerr.Wrap(...) to missing places.
3 years ago
Eduard S
1050da350a
Wipe StateDB in cli command wipesql
Also, in the cli commands `wipesql` and `discard`, always rebuild the current
checkpoint of the stateDBs to make sure it's in a consistent non-corrupted
state and do a reset afterwards. These commands will allow reverting the
StateDB to a valid and consistent state in case a crash leaves the StateDB in a
corrupted state.
3 years ago
Eduard S
e460a7e58b
Merge pull request #608 from hermeznetwork/feature/txprocessor-doc
Extend TxProcessor documentation and explanation
3 years ago
arnaucube
97fdbfe037
Extend TxProcessor documentation and explanation
3 years ago
arnau
2e2d5a3c29
Merge pull request #607 from hermeznetwork/feature/updateconfig
Update example config with working values
3 years ago
Eduard S
f762fbdc4d
Update example config with working values
The `ForgeBatchGasCost` parameters work for the current version of the smart
contracts.
3 years ago
Eduard S
4390fd8346
Merge pull request #603 from hermeznetwork/feature/update-linter-lll
Add lll to linter checks
3 years ago
arnaucube
93b7866d3e
Add lll to linter checks
Updated:
batchbuilder
common
coordinator
db/statedb
eth
log
node
priceupdater
prover
synchronizer
test/*
txprocessor
txselector
Pending (once
https://github.com/hermeznetwork/hermez-node/tree/feature/serveapicli is
merged to master):
Update golangci-lint version to v1.37.1
api
apitypes
cli
config
db/historydb
db/l2db
3 years ago
a_bennassar
059a3556fb
Merge pull request #604 from hermeznetwork/fix/meddler
Don't select extra columns in SQL, fix metrics query
3 years ago
Eduard S
8b88e1fbd0
Don't select extra columns in SQL, fix metrics query
In the metrics query, the estimatedTimeToForgeL1 was probably not being read
from the SQL query because it contained upper case letters, and in PostgreSQL
when identifiers are not double quoted they are case insensitive:
https://stackoverflow.com/a/20880247
3 years ago
arnau
1de0b08bac
Merge pull request #593 from hermeznetwork/fix/addgaspriceresend
When resending an eth tx, always increase gas price
3 years ago
arnau
73c3a91746
Merge pull request #602 from hermeznetwork/fix/forgebatch
Fix unforged L1UserTxs query in forgeBatch
3 years ago
Eduard S
74769da5ba
Fix unforged L1UserTxs query in forgeBatch
Previously the code was only querying the unforged L1UserTxs of a particular
queue, but this was incorrect because there are always two non-forged queues:
the frozen one and the open one.
Replace it by a query to all the unforged L1UserTxs via a new HistoryDB method.
3 years ago
Eduard S
65b007d59c
When resending an eth tx, always increase gas price
Incrementing the gas price unconditionally avoids sending the exact same
transaction, which geth will reject because that transaction already exists in
the pool
3 years ago
arnau
6e4bd56c1a
Merge pull request #595 from hermeznetwork/fix/print-balance
fix forge address balance printing removing the int64 casting
3 years ago
Eduard S
39b7882ef2
Merge pull request #594 from hermeznetwork/fix/post-tx-no-usd
Avoid SQL error when checking value of token without usd on tx insert
3 years ago
Eduard S
c7d0422c16
Merge pull request #596 from hermeznetwork/fix/l1CoordinatorFromBytes-parser
Update L1CoordinatorTxFromBytes parser to EIP712
3 years ago
arnaucube
56ffea2190
Update L1CoordinatorTxFromBytes to EIP712
3 years ago
Danilo Pantani
4a75c35abf
fix forge address balance printing removing the int64 casting
3 years ago
arnaubennassar
cf70111de5
Avoid SQL error when checking value of token without usd on tx insert
3 years ago
a_bennassar
f664a3a382
Merge pull request #588 from hermeznetwork/feature/check-forge-balance
check the forge address balance before starting the node
3 years ago
Danilo Pantani
cd1df6ea8c
check the forge address balance before starting the node
3 years ago
Eduard S
6da827c751
Merge pull request #591 from hermeznetwork/feature/accCreationAuth-EIP712
Update AccCreationAuth signature hash to EIP-712
3 years ago
arnaucube
60023e4574
Update AccCreationAuth signature hash to EIP-712
Compatible with `hermeznetwork/contracts` commit: `67726208723a40f2251953aaabf4d2b6221f8b13`
Compatible with `hermeznetwork/commonjs` commit: `dee266fb036a64bebc65756ebd5f0361929c110d`
3 years ago
arnau
9de3a4ec6a
Merge pull request #590 from hermeznetwork/fix/zki-imExitRoot
Set the intermediary signal when exit TX is not inserted
3 years ago
Alberto Elias
91c96eb429
Merge pull request #589 from hermeznetwork/feature/api-batch-timeout
Add forge delay to api get state
3 years ago
Jordi Baylina
70f874aaf1
Set the intermediary signal when exit TX is not inserted
3 years ago
arnaubennassar
54508b0ba6
Add forge delay to api get state
3 years ago
Eduard S
0adcf1a2bc
Merge pull request #587 from hermeznetwork/feature/legacy-sync2
Update synchronizer.Sync2 to Sync from legacy impl
3 years ago
a_bennassar
527cd9a2cc
Merge pull request #584 from hermeznetwork/fix/fgingAfterReboot
Reorg l2db before starting pipeline
3 years ago
arnau
b269117a32
Merge pull request #586 from hermeznetwork/feature/gindebugviaconfig
Set gin debug mode via config
3 years ago
arnau
e14705c13b
Merge pull request #585 from hermeznetwork/feature/gascalc
Calculate ForgeBatch gasLimit with parametrized formula
3 years ago
arnau
5ff0350f51
Merge pull request #583 from hermeznetwork/fix/checkinterval
Fix missing timer reset in TxManager
3 years ago
arnaucube
15fd3945dd
Update synchronizer.Sync2 to Sync from legacy impl
3 years ago
Eduard S
83c256deda
Merge pull request #581 from hermeznetwork/feature/api-L1-forge-time
Add API metric for time to forge L1 tx
3 years ago