Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"env": {
"node": true
},
"plugins": ["@typescript-eslint", "security", "xss"],
"plugins": ["@typescript-eslint", "security", "xss", "no-unsanitized"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:security/recommended",
"plugin:no-unsanitized/DOM",
"plugin:no-unsanitized/recommended-legacy",
"prettier"
],
"ignorePatterns": [
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
branches:
- dev
- main
- mainnet-*
issue_comment:
inputs:
workflowBranch:
Expand Down
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ module.exports = {
tsconfig: "test/tsconfig.json"
}]
},
transformIgnorePatterns: [
"node_modules/(?!(ethereumjs-util|@ethereumjs|ethereum-cryptography)/.*)"
],
moduleDirectories: ["node_modules", "src"],
globals: {
'ts-jest': {
Expand Down
45 changes: 25 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shardeum-foundation/archiver",
"version": "3.6.0-prerelease.0",
"version": "3.7.0-prerelease.1",
"engines": {
"node": "18.19.1"
},
Expand Down Expand Up @@ -89,10 +89,10 @@
"typescript-json-schema": "0.51.0"
},
"dependencies": {
"@shardeum-foundation/lib-archiver-discovery": "1.2.0-prerelease.0",
"@shardeum-foundation/lib-crypto-utils": "4.2.0-prerelease.0",
"@shardeum-foundation/lib-net": "1.5.0-prerelease.0",
"@shardeum-foundation/lib-types": "1.3.0-prerelease.0",
"@shardeum-foundation/lib-archiver-discovery": "1.3.0-prerelease.0",
"@shardeum-foundation/lib-crypto-utils": "4.3.0-prerelease.0",
"@shardeum-foundation/lib-net": "1.6.0-prerelease.0",
"@shardeum-foundation/lib-types": "1.4.0-prerelease.1",
"@ethereumjs/tx": "5.0.0",
"@ethereumjs/util": "9.0.0",
"@fastify/cors": "8.5.0",
Expand Down
2 changes: 2 additions & 0 deletions src/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export interface Config {
maxRecordsPerRequest: number // this is the equiavlent of the accountBucketSize config variable used by the validators to fetch records from the archiver
multisigKeysSyncFromNetworkInternal: number // in seconds
minCycleConfirmationsToSave: number // this is the minimum numbers of nodes that we need to a see a cycle from to save it
formingNetworkCycleThreshold: number // CODE REVIEW WARNING: never allow this to be set more than 30. we have some trusted execution until this cycle is reached (specifically allowing global tx receipts) - will be refactored to be avoided
}

let config: Config = {
Expand Down Expand Up @@ -248,6 +249,7 @@ let config: Config = {
maxRecordsPerRequest: 200,
multisigKeysSyncFromNetworkInternal: 600,
minCycleConfirmationsToSave: -1,
formingNetworkCycleThreshold: 30
}
// Override default config params from config file, env vars, and cli args
export async function overrideDefaultConfig(file: string): Promise<void> {
Expand Down
Loading