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

v1.8.0-rc1

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 18 Oct 13:05
· 1 commit to develop since this release
c057926

Pao de acucar (v1.8.0)

Changes on the configuration:

Section Parameter Name Env name Required/Optional Default value Description
Log Level HEZNODE_LOG_LEVEL Optional "info" Log level used
Log Out HEZNODE_LOG_OUT (comma separator ",") Optional ["stdout"] Place where logs are going to be stored and showed
API ReadTimeout HEZNODE_API_READTIMEOUT Optional "30s" ReadTimeout is the maximum duration for reading the entire request, including the body.
API WriteTimeout HEZNODE_API_WRITETIMEOUT Optional "30s" WriteTimeout is the maximum duration before timing out writes of the response.
API CoordinatorNetwork HEZNODE_API_COORDINATORNETWORK Optional true Enable the network used to share data (such as txs in the pool) among coordinators.
API FindPeersCoordinatorNetworkInterval HEZNODE_API_COORDINATORNETWORK_FINDPEERSINTERVAL Optional "180s" Frequency to find more peers for the coordinators network
Coordinator ProverWaitReadTimeout HEZNODE_COORDINATOR_PROVERWAITREADTIMEOUT Optional "20s" ProverWaitReadTimeout just set the timeout to prover waiting.
RecommendedFeePolicy PolicyType HEZNODE_RECOMMENDEDFEEPOLICY_POLICYTYPE Optional "Static" Selects the mode. "Static", "AvgLastHour" and "DynamicFee"
RecommendedFeePolicy BreakThreshold HEZNODE_RECOMMENDEDFEEPOLICY_BREAKTHRESHOLD Optional 50 If PolicyType is "DynamicFee" defines the break threshold parameter
RecommendedFeePolicy NumLastBatchAvg HEZNODE_RECOMMENDEDFEEPOLICY_NUMLASTBATCHAVG Optional 10 If PolicyType is "DynamicFee" defines the number of batches to calculate the average cost

List of most relevant changes:

  • Decentralize the transaction pool: Coordinators will share txs using libp2p
  • Refactor API var names to be more readable
  • Log level is now a config parameter:
  • Backup CLI command to create a zip file with both SQL and StateDB
  • Add a new policy to calculate Ethereum fee: DynamicFee
  • Mod BJJ to prevent public keys being out of the finite field
  • Better JSON (un)marshaller for apitypes/txl2.go
  • Add gas info used to mine batches
  • Add more info on L1 txs: tx hash and fee
  • Don't update pool txs info if the reason is batch is already full
  • New recommended fee policy allows to calculate l2 fees dynamically

Changelog

b31086b Avoid non-selected txs to have info field update when the batch is full (#1155)
7cc3324 DynamicFee change name (#1148)
cd88bbd Feature/#1127 dynamic suggested fee (#1133)
c32367d Feature/#831 tx hash (#1103)
c057926 Feature/conf (#1154)
79bd902 Feature/coordinators network (#1147)
9ed09d5 Feature/make backup (#1098)
d64e8b4 Fix imports and layout
d6f89a6 Improve Sync process to handle blocks with SC Events (#1113)
a343307 Merge pull request #1102 from hermeznetwork/feature/prover-refactor
8f44a83 Merge pull request #1110 from hermeznetwork/improvement/http-server-configuration
072fede Merge pull request #1112 from hermeznetwork/improvements/make-prover-timeout-configurable
9413f6a Merge pull request #1149 from hermeznetwork/feature/revert-sync-by-event
eca4ca5 Merge pull request #1150 from hermeznetwork/feature/mod-bjj-ff
e287613 Mod bjj to do not fall out of the finite field
e787728 Move prover struct to coordinator group
b52d699 Revert "Revert "Revert sync by events to sync every block" (#1151)" (#1152)
fd1e467 Revert "Revert sync by events to sync every block" (#1151)
854a977 Update config/README.md
4adbf95 config: add new params on README
7aeda2f config: create struct APIConfigParameters
7db1334 fix UpdateTxsInfo to handle more than 65535 tx (#1123)
9ce4afe fix unmarshal txl2 (#1146)
446c443 fix: add ProverReadTimeout on test struct
72251 cd get read/write timeout from config
828db59 lint: fix lint problems
884b8ff linter
77b2649 linter
c68c174 log level as conf param (#1128)
c494491 node: using new struct to set up API configuration
3ee5f3e revert sync by events
188fa45 using proverWaitReadTimeout from config