Eduard S
cd6eb44c16
Merge pull request #413 from hermeznetwork/feature/parametrize-chainid
Parametrize ChainID
3 years ago
Eduard S
086dc85104
Get ChainID from ethereum node
3 years ago
arnaucube
150597c282
Parametrize ChainID
3 years ago
Eduard S
adc044001f
Merge pull request #412 from hermeznetwork/fix/sdb-nonce
Fix StateDB & Til Nonce increment
3 years ago
arnaucube
eea44b3990
Fix StateDB & Til Nonce increment
3 years ago
Eduard S
fb48ca4e58
Merge pull request #411 from hermeznetwork/feature/forged-txs-in-batchesapi
Add forged txs in batch endpoints response
3 years ago
Eduard S
4793a20727
Merge pull request #408 from hermeznetwork/feature/txsel-update-processinglogic
TxSelector update txs processing logic
3 years ago
arnaucube
982a423bf3
TxSelector update txs processing logic
3 years ago
Arnau B
6e7f860d61
Add forged txs in batch endpoints response
3 years ago
arnau
3cf615a769
Merge pull request #406 from hermeznetwork/feature/implforgebatchargs
Implement Pipeline.prepareForgeBatchArgs()
3 years ago
Eduard S
8d5b375625
Merge pull request #407 from hermeznetwork/fix/api-coordinator
Add bootCoord to coord table, get coord by forgerAddr
3 years ago
arnaucube
2583d35adf
Update ZKInputs for empty batches
- Add TestZKInputsEmpty circom test vectors
- Fix ZKInputsHash OldLastIdx bytearray
3 years ago
Arnau B
bc5fa92898
Add bootCoord to coord table, get coord by forgerAddr
3 years ago
Eduard S
cd1a193dcd
Merge pull request #405 from hermeznetwork/fix/api-nonce
Fix API nonces
3 years ago
Eduard S
a50bda3f59
Update packr dependency
Update packr to 2.8.1 which fixes this issue:
https://github.com/gobuffalo/packr/issues/261 which I encountered while running
a test with `-race`
3 years ago
Eduard S
6a990376b4
Implement Pipeline.prepareForgeBatchArgs()
- Implement Pipeline.prepareForgeBatchArgs()
- Add a minimal stress test for the coordinator (that also runs the
synchronizer)
- Update txprocessor.ProcessTxs() to return valid results for batches without
transactions
- Add the boilerplate for the corresponding test, leaving as TODO the
zkInput values
- Update prover client to use the same point format as proof server (projective)
- Update interface of TxSelector.GetCoordIdxs to also return the authorizations
to create accounts that go with the l1CoordinatorTxs.
3 years ago
arnau
c61c4f3376
Merge pull request #402 from hermeznetwork/feature/testpurger
Test purger, fix some nonces
3 years ago
Arnau B
a7394cdb2a
Fix API nonces
3 years ago
Eduard S
a8ac35059a
Test purger, fix some nonces
- Test all the purger functions
- Fix nonces set by til (previously til started with nonce 1 for pool l2txs,
but the correct implementation is to start with nonce 0)
- Rename L2DB.CheckNonces to L2DB.invalidateOldNoncesQuery
- Rename L2DB.checkNoncesQuery to L2DB.InvalidateOldNonces
Related https://github.com/hermeznetwork/hermez-node/issues/392 (Fix checkNoncesQuery)
Resolve https://github.com/hermeznetwork/hermez-node/issues/396
3 years ago
a_bennassar
8a2df8de0d
Merge pull request #390 from hermeznetwork/feature/bjj-comp
Feature/bjj comp
3 years ago
arnaucube
4b10549822
mv of babyjub.PublicKey to babyjub.PublicKeyComp
Update usage of `*babyjub.PublicKey` to `babyjub.PublicKeyComp`
- when the key is not defined, internally is used `babyjub.EmptyBJJComp`, which is a `[32]byte` of zeroes of type `babyjub.PublicKeyComp`
- the API continues returning `nil` when the key is not defined
3 years ago
a_bennassar
0401ff6180
Merge pull request #385 from hermeznetwork/feature/integratepriceupdater
Update and integrate price updater
3 years ago
arnau
b9943182b8
Merge pull request #383 from hermeznetwork/feature/initvars
Use init SC vars and start block from events
3 years ago
Eduard S
92e34fb683
Merge pull request #387 from hermeznetwork/feature/fix-get-best-bid-coord
Fix historyDB GetBestBidCoordinator
3 years ago
laisolizq
bc29222341
Fix historyDB GetBestBidCoordinator
3 years ago
Eduard S
56fffdcee5
Update and integrate price updater
PriceUpdater:
- Pass context so that it can be canceled during an update loop
- Define APITypes to make it explicit which API we are using
3 years ago
Eduard S
b1a8384f27
Run go-instrument-errors to wrap errors
3 years ago
Eduard S
b59f790c04
Use init SC vars and start block from events
Previously the Synchronizer required the initial variables of the smart
contracts to be passed as a configuration parameter (that the node took from
the configuration file). The same applied to the blockNumber.
The last update of the smart contracts introduced events for each smart
contract constructor (initializer), which allows querying the initial variables
as well as the initial block number for each smart contract.
Now the synchronizer uses this information, and thus the initial variables and
the starting block numbers have been removed from the configuration.
3 years ago
laisolizq
0bde608a1b
Merge pull request #380 from hermeznetwork/feature/upgradecontracts
Upgrade contracts and parse init events
3 years ago
Eduard S
ac400bad77
Upgrade contracts and parse init events
3 years ago
Eduard S
d649dd3395
Merge pull request #379 from hermeznetwork/feature/upd-effamounts
Effective amounts add missing check
3 years ago
arnaucube
0bcf57603c
Effective amounts add missing checks
3 years ago
Eduard S
cae69acecb
Merge pull request #373 from hermeznetwork/feature/txsel-coordidx
TxSelector add CoordIdxDB, SelectionConfig, abstract filtering
3 years ago
arnaucube
004f852b44
TxSelector add CoordIdxDB, SelectionConfig, abstract filtering
TxTypeToEthAddr & TxTypeToBJJ
- TxSelector
- Add SelectionConfig for each batch
- Add CoordIdxDB key-value where the CoordinatorIdxs are stored
- Separated method for filtering TxTypeToEthAddr & TxTypeToBJJ
3 years ago
a_bennassar
6ac033bdd6
Merge pull request #372 from hermeznetwork/feature/fixtxsorder
Fix order of L1UserTxs
3 years ago
Eduard S
8a59296cb8
Fix order of L1UserTxs
When the synchronizer queries the unforged L1UserTxs, sort them by position
Swap the order of calls setL1UserTxEffectiveAmounts and addBatch in
AddBlockSCData because otherwise, for reasons I dont understand, the item_id of
the txs doesn't follow the position of the txs.
3 years ago
arnau
8838bd62f9
Merge pull request #371 from hermeznetwork/feature/fixpanic1
Fix panic caused by nil batchInfo.ServerProof
3 years ago
Eduard S
7f0d2dfd43
Fix panic caused by nil batchInfo.ServerProof
3 years ago
Eduard S
a3d0765644
Merge pull request #370 from hermeznetwork/fix/pipeline-call
Fix coordinator pipeline forgeBatch call
3 years ago
arnaucube
d871ebc9d6
Fix coordinator pipeline forgeBatch call
3 years ago
arnau
d781b41fed
Merge pull request #365 from hermeznetwork/feature/nodecfg
Merge node (sync-only) and coord config
3 years ago
arnau
ca25bd14d2
Merge pull request #363 from hermeznetwork/feature/coordinator1
Make coordinator more robust agains failed forges
3 years ago
Eduard S
12fba96eee
Merge pull request #366 from hermeznetwork/fix/api-exit-response
Fix format of the MTP for exit endpoint
3 years ago
arnau
f58cadb34e
Merge pull request #362 from hermeznetwork/feature/updatetxs
Update txs constructors and helpers
3 years ago
arnau
c047f2ffe8
Merge pull request #360 from hermeznetwork/feature/integration26
Add mock proof server
3 years ago
Arnau B
8083e4fec3
Fix format of the MTP for exit endpoint
3 years ago
Eduard S
885f584fd2
Add mock proof server
3 years ago
arnau
6dd766be4d
Merge pull request #359 from hermeznetwork/feature/integration25
Extend Coordinator tests
3 years ago
Eduard S
11722c60ba
Merge node (sync-only) and coord config
3 years ago
Eduard S
f3505000dd
Make coordinator more robust agains failed forges
3 years ago