Skip to content

Commit

Permalink
Merge branch 'dev' into alekseysidorov-zks-206-loadtest-add-a-scenari…
Browse files Browse the repository at this point in the history
…o-for-stressing
  • Loading branch information
alekseysidorov committed Feb 3, 2021
2 parents 08c3a22 + 9bdf914 commit 4080e66
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 13 deletions.
27 changes: 21 additions & 6 deletions changelog/core.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,46 @@ All notable changes to the core components will be documented in this file.

## Unreleased

- Removed the limitation on the number of withdrawals in the block.
- (`FeeTicker`): Increased gas price estimate for transaction.
### Removed

### Changed

- The token name is now set for each scenario separately instead of the network section of the loadtest configuration.

### Added

- Added a stressing dev fee ticker scenario to the loadtest.
- Added a `--sloppy` mode to the `dev-fee-ticker-server` to simulate bad networks with the random delays and fails.

### Fixed

## Release 2021-02-02

### Removed

- `MetricsCounter` structure was removed because it is not used.
- The limit on the number of withdrawals in the block.

### Changed

- Type aliases (`TokenId`, `AccountId`, `Nonce`, `BlockNumber`, `PriorityOpId`, `EthBlockId`) are replaced with wrapper
structures.
- `prometheus_exporter` was made a library to be used by several crates.
- `prover_run_for_next_commit` function uses a parameterized timeout instead of a hard-coded one.
- `action_type` column type in db is changed from `text` to `enum` for optimization.
- The token name is now set for each scenario separately instead of the network section of the loadtest configuration.
- (`storage`): `action_type` column type in db is changed from `text` to `enum` for optimization.
- (`FeeTicker`): Increased gas price estimate for transaction.
- (`loadtest`): Scenario execution was made parallel.
- Increased completeWithdrawal gas limit, that decreased the chance of the users to face the out-of-gas error

### Added

- `prometheus_exporter` is launched by every microservice.
- `tokens_acceptable_for_fees` endpoint that returns the list of tokens acceptable for fees was added to REST API v0.1.
- Added a stressing dev fee ticker scenario to the loadtest.
- Added a `--sloppy` mode to the `dev-fee-ticker-server` to simulate bad networks with the random delays and fails.

### Fixed

- (`FeeTicker`): Performance for getting the batch fee was heavily optimized.

## Release 2021-01-12

### Changed
Expand Down
22 changes: 18 additions & 4 deletions changelog/infrastructure.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,33 @@ components, the logs will have the following format:

### Removed

- 'localStorage' caching, it fixed the bug, when entire block be "Initiated" for more than a day.
### Changed

### Added

### Fixed

## Release 2021-02-02

### Removed

- (`explorer`): 'localStorage' caching. It fixed the bug when the block have not updated the "Initiated" status.

### Changed

- (`explorer`): Deposits from and withdrawals to an L1 account with the same address are not displayed on the account
history page.
- (`explorer`): Deposits from and withdrawals to an L1 account are only displayed in the history of operation initiator.

### Added

- (`explorer`): `completeWithdrawals` tx hash was added to the explorer.

### Fixed

- (`explorer`): Bug with not displaying old blocks was fixed.
- (`explorer`): bug with updating transaction data after searching another transaction was fixed.
- (`explorer`): Bug with updating transaction data after searching another transaction was fixed.
- (`explorer`): Fixed processing of transactions with different prefixes.
- (`explorer`): bug with not displaying some deposits and withdrawals for the accounts was fixed by not taking account
address case into account.

## Release 2021-01-12

Expand Down
9 changes: 8 additions & 1 deletion changelog/js-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@ All notable changes to `zksync.js` will be documented in this file.

## Unreleased

**Version 0.8.4** is being developed.
### Added

### Changed

### Fixed

## Version 0.8.4

### Added

- `updateTokenSet` function that updates the `tokenSet` stored in the `Provider`.
- `newMockProvider` and `DummyTransport`. Tests for the library.
- `closestGreaterOrEqPackableTransactionAmount` and `closestGreaterOrEqPackableTransactionFee` functions. Tests for
them.
- Checks for ERC-1271 wallets for whether the messages should be prefixed

### Changed

Expand Down
4 changes: 2 additions & 2 deletions infrastructure/explorer/src/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ export class Client {
const transactions = rawTransactions.filter((tx) => {
const type = tx.tx.type || '';
if (type == 'Deposit') {
return tx.tx.priority_op.to == address;
return tx.tx.priority_op.to.toLowerCase() == address.toLowerCase();
} else if (type == 'Withdraw') {
return tx.tx.from == address;
return tx.tx.from.toLowerCase() == address.toLowerCase();
} else return true;
});
const res = transactions.map(async (tx) => {
Expand Down

0 comments on commit 4080e66

Please sign in to comment.