Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

v1.6.0

Compare
Choose a tag to compare
@github-actions github-actions released this 03 Aug 09:01
· 92 commits to develop since this release

Diamantina (v1.6.0)

WARNING: this version introduces some changes that could affect already deployed systems, please make sure you understand this implications before updating:

  • Field MaxGasPrice is an integer value at config file
  • There is a new parameter called MinGasPrice at Coordinator.EthClient section and it is an integer value at config file
  • Now hermez-node requires Go version 1.16
  • Swapped endianness of BJJ in config file:
# ...
[Coordinator.FeeAccount]
Address = "0xA67CD3f603E42dcBF674ffBa511872Bd397EB895"
# BEFORE:  BJJ = "0x899cf5fded7c088f6e770a7a2c18db917468202a23c111bf23793928e5055392"
BJJ = "0x925305e528397923bf11c1232a20687491db182c7a0a776e8f087cedfdf59c89" # Now
# ...

List of most relevant changes:

  • Added support for atomic transactions
  • Added support for L2 transactions with MaxNumBatch
  • txselector improvements: in some scenarios can select transactions with less batches
  • Added MinGasPrice in config file
  • Unified several types that represented a pool tx into common.PoolL2Tx, and added JSON marshaler/unmarshaler
  • Run the software as a service: bash make install and bash service heznode start
  • Added script to update SCs ABIs
  • Other API improvements such as documentation and ability to update existing pool transactions

Changelog

10bb074 #1012 cyclic dependency (#1016)
40fb1d3 #779 pkg names (#1022)
286bfae Add 2nd zki test for atomic txs
85f9ce2 Add DB migration with atomic_group_id and rq_offset
ac34d6f Add MaxBatchNum to the signature
46492d8 Add MaxNumBatch support at API level
a4d860e Add RqOffset to PoolL2Tx and simple srt in txselector
2f47789 Add RqTxID to json Unamrhal and Marshal
24b4d1a Add atomic tx API tests
eefa834 Add atomic types
f1ea8bb Add auto incremente column and handle table
7238c42 Add compatibility canary test for atomic txs
f52aa6b Add endpoint to get txs from same atomic group ID
bc465b8 Add files to include rq_offset and atomic_group_id fields
3090446 Add https configuration section
cc8fd62 Add maxNumBatch to API (#1004)
62fd61f Add package documentation for txselector
6892c80 Add setup node documentation
8192c5d Add support for MaxNumBatch at selector & processor
75cb156 Add table to avoid column reference "item_id" is ambiguous error
9dfefeb Add test for POST atomic pool fees
bc48423 Add test for isAtomicGroup
f046da0 Add valid example for atomic txs in swagger
9f86a74 Add validation to rqoffset field
cfaf320 Add zki edge test for atomic txs
49d9687 Add zki test for MaxNumBatch
f0ddc27 Adds filter addresses to tokens endpoint (#964)
6a5dbf6 Avoid unnecessary checks and unify iterations into 1 loop
0d1e8db Check atomic groups integrity (#1015)
1c23375 Feature/#765 info msg (#995)
d9ecd5e Feature/api error mapping (#958)
a5c45f7 Feature/swagger references (#1028)
edc67cd Fix 500 error code when fee is too low (#975)
896a113 Fix RqTxID calculation by including nonce
c5d4140 Fix arrays out of bounds panic
979594e Fix creating atomic groups not marked as so
7ae1a75 Fix filename for goreleaser
374e6a5 Fix linter
5fe5f76 Fix linter
2202a73 Fix linter issues
931c1ce Fix scientific notation in state root (#1000)
bcaaf46 Fix swagger and missing fields
b72121b Fix test runner
3da08d5 Fix the logs paths
f4fef5b Fix txselector L1CoordTxs
4f015b1 Fix txselector tests: l1UserTxs ==> l1CoordTxs
57a9cf0 Fix txselector: no repeated coordIdxs
8a8d4ac Fix type in SQL field
07332f2 Fix typo
6a1a326 Fix typo
e06ff16 Implement atomic-pool endpoint
dd0276d Improve swagger description for requestOffSet
974fdd6 Inprove the format of POST /atomic-poolby adding deterministic AtomicGroupID
1500897 Invalid signature error message improved (#1006)
5ee94fe Linter fixes
249951b Linter fixes
500ae40 Make order of get pending transactions explicit
3056bd5 Merge api.receivedPoolTx, api.testPoolTxSend and l2db.PoolL2TxWrite into common.PoolL2Tx
b0e2400 Merge branch 'release/1.6.0-2'
ea0d910 Merge pull request #1008 from hermeznetwork/feature/hermeznode-install-as-a-service
d4472d6 Merge pull request #1009 from hermeznetwork/feature/fix-go-releaser
5272d05 Merge pull request #939 from hermeznetwork/feature/create-node-setup-documentation
280bec4 Merge pull request #955 from hermeznetwork/feature/rebase-with-develop
ba1be09 Merge pull request #957 from hermeznetwork/feature/api-maxnumbatch
95181b0 Merge pull request #959 from hermeznetwork/feature/signature-maxbatchnum
985a5dc Merge pull request #962 from hermeznetwork/feature/atomic2common
f7f64ba Merge pull request #963 from hermeznetwork/feature/txselector-maxbatchnum
91a61c6 Merge pull request #976 from hermeznetwork/feature/test-zki-maxnumbatch
47694e5 Merge remote-tracking branch 'origin/master' into release/1.6.0-2
20fc73c Move atomic related structs from api to common
72fb757 Move common/formats.go into common/converters.go
7c2b961 Msg improved to be more clear (#966)
7db7292 Order L2Txs considering atomic txs
5fc33c2 Propagate PoolL2Tx refactor to atomic pool
85f5708 Re-add Rq fields for Marshal methods
1039908 Rebase with develop
2ef9305 Release/v1.5.0 3 (#950)
9a1a574 Remove group id and add migration test for atomic txs
17388ff Remove the requestAnything fields to simplify POST
46c2759 Rename AtomicGroup.AtomicGroupID => AtomicGroup.ID
6ac4859 Reset StateDB and selection when failed atomic group
5cec4e0 Restart selection process on failing atomic groups
090634d Revert removal of RqTxId
572f272 Revert test file
60fabd1 Revert txselector refactor
d3ea2bc Set Rq fields
f9c0fe4 Set more detailed info to non-selected atomic txs (#946)
4e3147d Small fixes
702a86e Split api atomic txs related into separated file
95f6027 Split fields adding
45c8640 Support MaxNumBatch at selector & processor
6a0bb24 Token symbol validation in account endpoint (#965)
78d95dc Update README
a84c61d Update swagger example for atomic pool
53b6f80 abi's included and update script fixed (#1027)
db173df added min gas price as a parameter in the config and updated max gas price (#949)
172a16a added possibility to update already existing txs (#1019)
10d0251 base atomic tx structure
f639bc9 bjj in bigEndian config file (#800)
18bf148 implemented statedb status in /health endpoint (#967)
01d67d0 more descriptive variable names (#988)
f7a34ab toEthAddr api filter removed (#999)
02e1f53 txselector fully refactor