Skip to content

Commit

Permalink
[release] 20240405 Eth (#276)
Browse files Browse the repository at this point in the history
* [release] 20240405 Eth

* pr tag
  • Loading branch information
jiqiang90 authored Apr 5, 2024
1 parent 8c97602 commit d2e4d21
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
11 changes: 8 additions & 3 deletions packages/node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [4.1.0] - 2024-04-05
### Changed
- update modulos to match changes with node core (#276)

### Fixed
- Now when `workers` set to 0, it will use block dispatcher instead of throw and exit
- Fixed workers failed to start due to missing apiService, also fix `fetchChainBlock`
- Now when `workers` set to 0, it will use block dispatcher instead of throw and exit (#273)
- Fixed workers failed to start due to missing apiService, also fix `fetchChainBlock` (#275)

## [4.0.0] - 2024-04-03
### Added
Expand Down Expand Up @@ -442,7 +446,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Init release

[Unreleased]: https://github.com/subquery/subql-ethereum/compare/node-ethereum/4.0.0...HEAD
[Unreleased]: https://github.com/subquery/subql-ethereum/compare/node-ethereum/4.1.0...HEAD
[4.1.0]: https://github.com/subquery/subql-ethereum/compare/node-ethereum/4.0.0...node-ethereum/4.1.0
[4.0.0]: https://github.com/subquery/subql-ethereum/compare/node-ethereum/3.11.0...node-ethereum/4.0.0
[3.11.0]: https://github.com/subquery/subql-ethereum/compare/node-ethereum/3.10.1...node-ethereum/3.11.0
[3.10.1]: https://github.com/subquery/subql-ethereum/compare/node-ethereum/3.10.0...node-ethereum/3.10.1
Expand Down
7 changes: 3 additions & 4 deletions packages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/node-ethereum",
"version": "4.0.1-1",
"version": "4.1.0",
"description": "",
"author": "Ian He",
"license": "GPL-3.0",
Expand All @@ -27,7 +27,7 @@
"@nestjs/schedule": "^3.0.1",
"@subql/common": "^3.5.0",
"@subql/common-ethereum": "workspace:*",
"@subql/node-core": "^8.0.0",
"@subql/node-core": "^8.0.1",
"@subql/testing": "^2.1.1-0",
"@subql/types-ethereum": "workspace:*",
"cacheable-lookup": "6",
Expand Down Expand Up @@ -65,6 +65,5 @@
"files": [
"/dist",
"/bin"
],
"stableVersion": "4.0.1-0"
]
}
8 changes: 2 additions & 6 deletions packages/node/src/indexer/fetch.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,8 @@ export class FetchService extends BaseFetchService<
return Math.min(BLOCK_TIME_VARIANCE, CHAIN_INTERVAL);
}

protected getModulos(): number[] {
return getModulos(
this.projectService.getAllDataSources(),
isCustomDs,
EthereumHandlerKind.Block,
);
protected getModulos(dataSources: SubqlDatasource[]): number[] {
return getModulos(dataSources, isCustomDs, EthereumHandlerKind.Block);
}

protected async initBlockDispatcher(): Promise<void> {
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3122,9 +3122,9 @@ __metadata:
languageName: node
linkType: hard

"@subql/node-core@npm:^8.0.0":
version: 8.0.0
resolution: "@subql/node-core@npm:8.0.0"
"@subql/node-core@npm:^8.0.1":
version: 8.0.1
resolution: "@subql/node-core@npm:8.0.1"
dependencies:
"@apollo/client": ^3.8.8
"@nestjs/common": ^9.4.0
Expand All @@ -3149,7 +3149,7 @@ __metadata:
toposort-class: ^1.0.1
vm2: ^3.9.19
yargs: ^16.2.0
checksum: a91afbb931c7c20e89d96c633d01bb23475dda977beac97663f0ee69ecc1090d7c0b7f0080cd98502b7f5f4e63f8601de5ef769bb219283da3be92d668a9c4f9
checksum: ead9feeef201b2ed9db1726e70d375d6a3ca5d44f7576dd14aa2949308d11a6a34abcc1013cd4d84eb8e57fd236609cdb93e359c0b85ff5b225257c99261635d
languageName: node
linkType: hard

Expand All @@ -3167,7 +3167,7 @@ __metadata:
"@nestjs/testing": ^9.4.0
"@subql/common": ^3.5.0
"@subql/common-ethereum": "workspace:*"
"@subql/node-core": ^8.0.0
"@subql/node-core": ^8.0.1
"@subql/testing": ^2.1.1-0
"@subql/types-ethereum": "workspace:*"
"@types/express": ^4.17.13
Expand Down

0 comments on commit d2e4d21

Please sign in to comment.